/** * initializes an DrumEvent with very definitive properties to be pre-cached * for use in a sequencer context * * @param aPosition {int} the step position in the sequencer * @param aDrumType {int} the PercussionType to synthesize * @param aDrumTimbre {int} the drum machine's timbre * @param aInstrument {BaseInstrument*} the DrumInstrument the event corresponds to */ DrumEvent::DrumEvent( int aPosition, int aDrumType, int aDrumTimbre, BaseInstrument* aInstrument ) { init( aInstrument ); position = aPosition; _sampleStart = position * AudioEngine::bytes_per_tick; setType ( aDrumType ); setTimbre( aDrumTimbre ); updateSample(); }
void Timbre_set(void* ctx, float val) { SetHelp("Harmonics/CC#11"); setTimbre(val); }