Skip to content

Transpose notes example

Domenico Patella edited this page Apr 8, 2025 · 11 revisions

In questo esempio vedremo come impostare un trasporto premendo una nota da una tastiera esterna Useremo alcuni widget per mostrare le note ed impostare il trasporto. Anche se non abbiamo ancora parlato delle
funzioni relative a questi oggetti sono disponibili metodi per intercettare il cambio di valore , e modificare alcune proprietà

Lo script verrà inserito a livello di rackspace locale In questo esempio usiamo una tastiera simulata con TouchOSC che invierà la nota con messaggio midi tramite TouchOSC Bridge che rappresenta il nostro device collegato al RigManager

In un pannello del workspace posizioniamo dei widget che mostreranno la nota ricevuta Con il pulsante SET attiviamo la funzione transponse. Quando suoneremo una delle note sulla tastiera calcoleremo l'intervallo e applicheremo il trasporto per il rackspace corrente

image

Widget Handle Description
TextLabel   Caption NOTE
TextLabel wNote Display name of the played  note
TextLabel   Caption VELOCITY
TextLabel wVel Display Velocity of the played  note
TextLabel   Caption RELEASE Velocity
TextLabel wRel Release velocity of the played  note
TextLabel   Caption SET
Buitton wbtnTrs When the button is ON, the first note played is used to calculate the transpose interval.   When the button is OFF, the transpose is erased.
TextLabel   Caption ACTIVE  ( Light mean the transpose is active )
TextLabel wLabTr Display name of the transposed note
TextLabel wLabTrNum Display value of the transposed range

Clone this wiki locally