monome / norns

norns is many sound instruments.
http://monome.org
GNU General Public License v3.0
630 stars 145 forks source link

MIDI clock in - only from port 1 #1119

Closed nattog closed 2 months ago

nattog commented 4 years ago

At present Norns only can be clocked with MIDI from port 1 - it would be great to expand the choice to all 4 ports, to avoid having to potentially reassign devices. I imagine that the choice could present itself as when selecting MIDI clock output.

okyeron commented 4 years ago

Could you expand a bit on the details of your testing situation?

I'm building a midi monitor script and using the global clock system (clock.run(), etc.) I get midi clock OK with a device (Roland TR-09) sending clock from any vport.

However, MIDI clock tempo seems to get set in params regardless of which MIDI vport is being used in the active script. (active script is connected to device 1, but device 3 is sending clock, so params show device 3 tempo)

Perhaps source inclock.set_source(source) could be expanded to be Internal, MIDI 1, MIDI 2, MIDI 3, MIDI 4, Link, Crow? Or is that outside the intent of the clock system?

tehn commented 4 years ago

is there not a way to deactivate midi clock on the hardware that you don't want sending it?

okyeron commented 4 years ago

Depends on the device?

The Roland TR-09 I'm testing with has 2 settings for clock sync "AUTO" and "INT" - in both cases clock is always being sent. In AUTO, it will defer to incoming clock if it detects it.

I could see an interesting use case for listening to multiple (different) midi clocks and switching between them. (maybe a "way out there" edge case?)

tehn commented 4 years ago

i think it makes sense to have the system specify which device clocks are watched vs. ignored. will figure out the best UI for this--- the clock param menu is getting clogged, so perhaps will put this in the upcoming "devices settings" menu

tehn commented 2 months ago

feature added