Home › Forums › Scripts › cursor_id > note number › Reply To: cursor_id > note number
Hi!
Great job for now ; just a little mistake in the setmessage. You can use “+” operator to concatenate, but it will only work when the script is computed (at loading). To perform it in real time, you may use the {} (braces with javascript inside) :
run("setmessage current 1, midi://midi_out/notef 1 {cursor_id/127}");
Be aware that you’re using /notef in floating format (‘f’ => needs values between 0. and 1.). You can also use the /note that uses integers (between 0 and 127). So it could look like:
run("setmessage current 1, midi://midi_out/note 1 cursor_id");
Hope it is clear!
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |