File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -547,21 +547,23 @@ function applyMenuItems(mode)
547547 end
548548
549549 if doInst then
550+ seq :stop ()
551+ seq :allNotesOff ()
552+
550553 trackNames [row ] = trackNames [track ]
551554 if trackNames [row ] == " smp" then
552- seq :stop ()
553555 local smp = snd .sample .new (" temp/" .. track .. " .pda" )
554556 smp :save (" temp/" .. row .. " .pda" )
555557 smp = snd .sample .new (" temp/" .. row .. " .pda" )
556558 instrumentTable [row ]:setWaveform (WAVE_SIN )
557559 instrumentTable [row ]:setWaveform (smp )
558- seq :allNotesOff ()
559- seq :play ()
560560 else
561- instrumentTable [row ]:setWaveform (waveTable [table .indexOfElement (waveNames , trackNames [row ])])
561+ local wv = waveTable [table .indexOfElement (waveNames , trackNames [row ])]
562+ instrumentTable [row ] = instrumentTable [track ]:copy ()
563+ instrumentTable [row ]:setWaveform (wv )
562564 end
563565
564- tracks [row ]:setInstrument (instrumentTable [row ]: copy () )
566+ tracks [row ]:setInstrument (instrumentTable [row ])
565567
566568 instrumentADSRtable [row ] = table .deepcopy (instrumentADSRtable [track ])
567569 instrumentParamTable [row ] = table .deepcopy (instrumentParamTable [track ])
@@ -576,6 +578,8 @@ function applyMenuItems(mode)
576578 instrumentTable [row ]:setParameter (2 , instrumentParamTable [track ][2 ])
577579 tracks [row ]:getInstrument ():setTranspose (instrumentTransposeTable [row ])
578580 instrumentTable [row ]:setVolume (instrumentTable [track ]:getVolume ())
581+
582+ seq :play ()
579583 end
580584
581585 instrument .updateList ()
Original file line number Diff line number Diff line change @@ -3,5 +3,5 @@ author=nanobot567
33description=cranky synth 16: a 16-track synthesizer/sampler for playdate.
44bundleID=com.nano.cs16
55version=1.3
6- buildNumber=3079
6+ buildNumber=3086
77imagePath=SystemAssets/
You can’t perform that action at this time.
0 commit comments