Skip to content

orllewin/playdate_music_aus_sample

Repository files navigation

Music aus sample

MAS is a sample player/live drum machine for Playdate.

Creating New Patches

Put your Playdate in Disc Mode (Settings > System) and add custom patches to /Disk/Data/orllewin.playdate.musikaussample/UserPatches. Custom patches must be in their own directory and include a config.json file. The samples array contains sample objects (see below), the array size must equal columns x rows.

{
"label": "Default Demo Patch",
"columns": 4,
"rows": 2,
"samples": [
		...
	]
}

Example sample object:

{
	"title": "011",
	"path": "/Samples/Loops/100/Bonus Beat 08 (100BPM)",
	"type": "sample",
	"mode": "hit",
	"image": "/Images/down",
	"key": "down",
	"volume": 0.75,
	"rate": 1
}
  • title: String. Not truncated so keep it short
  • path: String, path to the sample within the .pda directory, or patch
  • type: String: see below. file types are streamed from disk. Use sample for anything but long audio files.
  • mode: String, the initial mode, can be one of hit, play, loop - see below for specs for each
  • image: String optional - path to an image in the .pda directory
  • key: String optional - one of left, right, up, down, a, b
  • volume: Float optional - 0.0 to 1.0, default is 1.0
  • rate: Float optional - playback rate in range 0.0 to 1.0, default is 1.0

Type

  • empty - make the ui cell a spacer/placeholder, can still have text and/or an image
  • sample - stored in memory so use for drum hits and short loops
  • file - audio streamed from disk, use for longer files and background music
  • transition - plays a file while loading in new player, see below

Mode

  • play - plays once, a second tap while playing stops, good for longer samples
  • hit - plays once, a second tap while playing restarts, good for drum hits
  • loop - loops forever, a second tap should stop playback

Transition

A transition is a special type that allows you to build up a full set with different sample sets/patches. When triggered an optional sample can be played once while the ui for the new patch is loaded, any other playing samples are stopped immediately, mode is ignored for this type.

{
	"title": "011",
	"path": "/UserPatches/set1/interlude",
	"type": "transition",
	"image": "/UserPatch/set1/transition_image",
	"next": "/UserPatches/set2/"
}

USB

MAS can be controlled by an Android device connected via USB running Playdate Android Pads. This is an experimental feature and could break if Panic turn off the USB serial eval method in a future Playdate OS release.


Image Asset Attribution

thenounproject.com/coquet_adrien/

jellyfish.png, frequency.png, sine.png, rain_cloud.png, snow_cloud.png, censored.png, heartbeat.png, bomb.png, recycle.png, octopus.png, snail.png, happy_jellyfish1.png, happy_jellyfish2.png, coronavirus.png, joking.png, tease.png, laugh.png, concentrate.png, pirate.png, grasshopper.png, creature.png

Sample Attribution

The vast majority of audio samples come from MusicRadar: musicradar.com/news/tech/free-music-samples-royalty-free-loops-hits-and-multis-to-download

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published