Hi Aaron, MIDI metadata for standard MIDI control can use MIDI channel: https://faustdoc.grame.fr/manual/midi/#configuring-midi-in-faust
But it is currently not possible to set a given channel for polyphony, you can see that the channel info is not used in the polyphonic code for now: https://github.com/grame-cncm/faust/blob/f5c23da4fe6e09fa55667ae588f4b6ef9c226cae/architecture/faust/dsp/poly-dsp.h#L900 Should we extend/revisit the syntax of freq/gate/gain convention for something like [freq: chan], [gate: chan], [gain: chan], with the convention chan = 0 would mean « receive on all channels», like for other MIDI messages ? Stéphane > Le 10 sept. 2025 à 17:35, Aaron Krister Johnson <akjmi...@gmail.com> a écrit : > > I notice in the manual, certain MIDI slider metadata operations can be > filtered by a certain MIDI channel, like `keyon` uses the velocity of a given > key on a given channel. > > But IMO, these kinds of operations seem geared towards a non-standard way of > using a MIDI signal. Most useful mono- or poly- synths would want to use the > general > keywords with special meaning: `freq/key`, `gain/vel`, and `gate` to drive > the usually needed MIDI parameters in, for instance, a synthesizer signal > chain. > > The problem I am having is: I'd like to pair a custom Faust synth with an > outboard analog monosynth. Ideally, I could assign Faust to listen only on a > certain MIDI channel. > As it is, it seems like I have to do the opposite: Faust will respond to > _all_ channels (not ideal) and I make the hardware synth respond to MIDI > channel 2. They are isolated only > by the fact that they are listening on different MIDI ports (otherwise, the > Faust synth would be "hearing" both channels and trying to respond to both). > What I have works for now, > but let's say I want 2 Faust synths -- they'd both be responding to all > channels that particular virtual port is listening on. > > So, in short: is there an easy way to make a running Faust synth instance > listen only to a particular MIDI channel when it's designed to use the > keywords `freq`, `gain`, and `gate`, > per the docs? How easy would it be to hack Faust or add a feature for users > for this if not? > > Aaron Krister Johnson > Music, etc.: > https://soundcloud.com/aaron-krister-johnson > https://soundcloud.com/filtercreed > https://www.youtube.com/channel/UC_utjGYbSizWE0dNyr0Vdmg > https://aaronkristerjohnson.bandcamp.com/ > http://www.untwelve.org > Code: > https://github.com/akjmicro > _______________________________________________ > Faudiostream-users mailing list > Faudiostream-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/faudiostream-users _______________________________________________ Faudiostream-users mailing list Faudiostream-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/faudiostream-users