JavaFX: Bringing Rich Experiences To All the Screens Of Your Life

Profile: desktop, common

Overview

Single drum

Example Play quarter note of Acoustic Snare

package testbox;

import javafx.stage.*;
import javafx.scene.*;
import crudfx.control.*;
import crudfx.interop.*;
import crudfx.sound.*;

Stage{
    width:400
    height:400
    scene:Scene{
        content:UINode{
            content:StandardButton{
                text:"Play"
                action:function():Void{
                    Drum{
                        instrument:38
                        velocity:1
                        tempo:120
                        part:4
                        }.play(120);
                    }
                }
            }
        }
    }
 

Profile: desktop

Variable Summary

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicinstrumentNumber

35-81

publicpartNumber

Part of whole note ie 16=sixteenth note

publicvelocityNumber

0.0 - 1.0

Inherited Variables

Function Summary

public play(playTempo: Number) : Void

Play

Play

Parameters
playTempo
 

Inherited Functions