Can I apply DX8 effect in iOS to play midi note?
Here is my sample code:
hfx = BASS_ChannelSetFX(stream, BASS_FX_DX8_I3DL2REVERB, 1);
BASS_DX8_I3DL2REVERB effect;
effect.flDecayHFRatio = 2; // 0.1 - 2, default is 0.83
effect.flDecayTime = 20; // 0 - 20.0, default is 1.49
effect.flDensity = 0.0; // 0 - 100, default is 100.0
effect.flDiffusion = 0.0; // 0 - 100.0, defaut is 100.0
effect.flHFReference = 20000.0; // 20 - 20,000, default is 5000.0
effect.flReflectionsDelay = 0.3; // 0 - 0.3, default is 0.007
effect.flReverbDelay = 0.1; // 0 - 0.1, default is 0.011
effect.flRoomRolloffFactor = 10; // 0 - 10.0, default is 0
effect.lReflections = 1000; // -10,000 - 1000, default is -2602
effect.lReverb = 2000; // -10,000 - 2000, default is 200
effect.lRoom = 0; // -10,000 - 0, default is -1000
effect.lRoomHF = 0; // -10,000 - 0, default is -100
BASS_FXSetParameters(hfx, &effect);
BASS_ChannelPlay(stream, false);
BASS_MIDI_StreamEvent(stream,1,MIDI_EVENT_NOTE,MAKEWORD(pitch,100));
But it seems no effect at all. Did I do anything wrong?