Musical Instrument Minecraft Interface (MIMI)

Musical Instrument Minecraft Interface (MIMI)

1M Downloads

redstone power levels

OYA-008 opened this issue ยท 10 comments

commented

Request the function of emitting different redstone power levels based on piano velocity.I will be very grateful!

commented

I've just uploaded MIMI version 4.3.0 to CurseForge and Modrinth which includes this feature! Thanks for the suggestion! I think this feature is a great addition to MIMI!

commented

Sorry it took me a little longer than I expected, but I've got a test build up for 1.21.1 NeoForge that you can try!

https://modrinth.com/mod/mimi/version/1t42yAyl

Within a Listener/Receiver you have to enable the mode by clicking this new button:

Image

commented

OK! Thank you very much!

commented

YES!

commented

Hi! Thanks for opening an issue on GitHub for this idea! ๐Ÿ˜„

To make sure I implement the feature in a way that would work for you - Are you wanting this function when playing a MIDI file or when playing a MIDI instrument directly like a real piano connected to your PC?

Thank you!

commented

Yes!

commented

I forgot to mention that this feature is installed on the blocks of the receiver and the listener. My apologies.

commented

Sorry, I made a mistake in my translation. It should be: 'It outputs different redstone signal strengths based on the force.

commented

That's what I figured so no worries at all! ๐Ÿ˜„

I'm thinking about how I'd map MIDI velocities to Redstone power levels. MIDI velocities can range from 0-127 which but 0 really means off so that makes 127 possible velocity values and Redstone goes from 0-15 but 0 really means off so that makes 15 possible Redstone power levels. I should be able to pretty easily map this to Redstone power levels for every ~8.5 velocity levels which would probably look something like this (alternating groups of 8 and then 9 velocities to one Redstone power):

Velocity Redstone Power
01-08 (8) 1
09-17 (9) 2
18-25 (8) 3
26-34 (9) 4
... ...
120 - 127 (8) 15

Would a simple mapping like this work for your use?

commented

I've got it working! https://streamable.com/4ydcy7

I need to do some cleanup and I also want to add a button onto the Receiver and Listener screens to enable/disable this mode so that existing builds don't break but should be able to have a test build out for 1.21.1 NeoForge later today!