Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MIDI bug with Tidalcycle chords #178

Open
ovitus opened this issue Feb 3, 2020 · 1 comment
Open

MIDI bug with Tidalcycle chords #178

ovitus opened this issue Feb 3, 2020 · 1 comment

Comments

@ovitus
Copy link

ovitus commented Feb 3, 2020

So I'm trying out some chord progression stuff with:

d1 $ struct "t(8,16)" $ n ("c3 d3 e3" |+ "<'maj>") # "midi" # chan 2

but that plays notes 2 octaves down for some reason, so to compensate I do:

do
all $ (+ note 24)
d1 $ struct "t(8,16)" $ n ("c3 d3 e3" |+ "<'maj>") # "midi" # chan 2

and that's what breaks things. I get just repeated c5 notes with that last one and afterwards until I restart Tidal.

@telephon
Copy link
Contributor

telephon commented Jun 8, 2020

Currently, the midi note value is derived from the freq value via cpsmidi in DirtEventTypes:

~midinote = (freq.cpsmidi).round(1).asInteger;

The freq value is calculated as follows:

~midinote = #{ ~note ? ~n + (~octave * 12) };
~freq = #{ ~midinote.value.midicps };

do you see if that is consistent with what you do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants