November 25, 2024, 10:10:39 pm
Welcome, Guest. Please login or register
News:

Arturia Forums



Author Topic: Is the Midi command "All notes off" not implemented in MicroFreak?  (Read 887 times)

mkoch

  • Apprentice
  • *
  • Posts: 46
  • Karma: 2
Hello,

why does switching off the notes not work in this C# code?

Code: [Select]
            outputDevice.SendControlChange(Channel.Channel3, (Midi.Control)127, 0);   // Polyphonic on
            outputDevice.SendNoteOn(Channel.Channel3, (Pitch)70, 80);
            outputDevice.SendNoteOn(Channel.Channel3, (Pitch)72, 80);
            outputDevice.SendNoteOn(Channel.Channel3, (Pitch)74, 80);
            outputDevice.SendNoteOn(Channel.Channel3, (Pitch)76, 80);     // up to this point it works, I can see 4 notes on the spectrum analyzer
            System.Threading.Thread.Sleep(1000);      // delay 1000ms
            outputDevice.SilenceAllNotes();                                           // doesn't work
            outputDevice.SendControlChange(Channel.Channel3, (Midi.Control)123, 0);   // all notes off, doesn't work
            outputDevice.SendNoteOff(Channel.Channel3, (Pitch)70, 80);                // however switching the notes off does work
            outputDevice.SendNoteOff(Channel.Channel3, (Pitch)72, 80);
            outputDevice.SendNoteOff(Channel.Channel3, (Pitch)74, 80);
            outputDevice.SendNoteOff(Channel.Channel3, (Pitch)76, 80);

Any ideas why this doesn't work?

Michael

mkoch

  • Apprentice
  • *
  • Posts: 46
  • Karma: 2
Re: Is the Midi command "All notes off" not implemented in MicroFreak?
« Reply #1 on: March 22, 2023, 11:03:35 am »
Also the Midi commands "Reset" and "Volume" seem not to work. How do you make the MicroFreak silent over Midi, if you don't know which notes are on? As a workaround it's possible to send 128 "Note off" commands for all notes, but that's slow.

Michael

 

Carbonate design by Bloc
SMF 2.0.17 | SMF © 2019, Simple Machines