Class CtabChannelSettings
java.lang.Object
org.jjazz.yamjjazz.rhythm.api.CtabChannelSettings
Corresponds to data in the Ctab structure or ctb2 structure (first part only, 2nd ctb2 part is in the ct2Low/Main/High fields) in the style file, associated
to one channel.
For simplification fields are public and can be filled directly by the user, or via the helper methods.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddump()intintintbooleanTrue if specified note is one of the muted notes.booleanTrue if specified YamChord is one of the muted chords.booleanTrue if there is only one ctb2 for the main/middle note range (no ctb2 for low range or high range).voidsetCtb2MiddleHighPitch(int b1) Set the middle high pitch.voidsetCtb2MiddleLowPitch(int b1) Set the middle low pitch.voidsetMutedChords(int b1, int b2, int b3, int b4, int b5) voidsetMutedNotes(int b1, int b2) voidsetSourceChordType(int b1)
-
Field Details
-
name
-
accType
-
editable
public boolean editable -
mutedNotes
-
autoStart
public boolean autoStart -
mutedChords
-
sourceChordNote
-
sourceChordType
-
ctb2Low
-
ctb2Main
-
ctb2High
-
-
Constructor Details
-
CtabChannelSettings
public CtabChannelSettings(int channel)
-
-
Method Details
-
getSourceChordSymbol
-
getChannel
public int getChannel()- Returns:
- 1-16
-
getCtb2MiddeLowPitch
public int getCtb2MiddeLowPitch() -
setCtb2MiddleLowPitch
public void setCtb2MiddleLowPitch(int b1) Set the middle low pitch.This also creates ctb2Low if required.
- Parameters:
b1-
-
isSingleCtb2
public boolean isSingleCtb2()True if there is only one ctb2 for the main/middle note range (no ctb2 for low range or high range).Will always return true for SFF1 files.
- Returns:
-
getCtb2MiddeHighPitch
public int getCtb2MiddeHighPitch() -
setCtb2MiddleHighPitch
public void setCtb2MiddleHighPitch(int b1) Set the middle high pitch.This also creates ctb2High if required.
- Parameters:
b1-
-
setSourceChordType
public void setSourceChordType(int b1) - Parameters:
b1- [0; 0x22]
-
setMutedChords
public void setMutedChords(int b1, int b2, int b3, int b4, int b5) -
setMutedNotes
public void setMutedNotes(int b1, int b2) - Parameters:
b1- bit field of the CTAB struct (byte 11)b2- bit field of the CTAB struct (byte 12)
-
isMuted
True if specified note is one of the muted notes.- Parameters:
n-- Returns:
-
isMuted
True if specified YamChord is one of the muted chords.- Parameters:
yc-- Returns:
-
dump
public void dump()
-