Maestro - Midi Player Tool Kit for Unity Version 2.18.2
Loading...
Searching...
No Matches
Chords and Scales

Build and play chords from scale or library definitions. More...

Classes

class  MidiPlayerTK.MPTKChordBuilder
 Build chords and play them with MidiStreamPlayer.
. More...
class  MidiPlayerTK.MPTKChordLib
 Build chords from a library and play them with MidiStreamPlayer.
. More...
class  MidiPlayerTK.MPTKRangeLib
 [MPTK PRO] Build Scale and Play with MidiStreamPlayer.
More...
class  MidiPlayerTK.MPTKScaleLib
 Build scales and play them with MidiStreamPlayer.
. More...

Enumerations

enum  MidiPlayerTK.MPTKChordName
 List of available chords. More...
enum  MidiPlayerTK.MPTKRangeName
 [MPTK PRO] List of ranges available
enum  MidiPlayerTK.MPTKScaleName
 List of available scales. More...

Functions

MPTKChordBuilder MidiPlayerTK.MidiStreamPlayer.MPTK_PlayChordFromScale (MPTKChordBuilder chord)
 Plays a chord from the currently selected scale (MPTK_ScaleSelected). Tonic and degree are defined in the MPTKChordBuilder parameter. If no scale is selected, the major scale is used by default.See GammeDefinition.csv in Resources/GeneratorTemplate.
MPTKChordBuilder MidiPlayerTK.MidiStreamPlayer.MPTK_PlayChordFromLib (MPTKChordBuilder chord)
 Plays a chord from the chord library. See ChordLib.csv in Resources/GeneratorTemplate. The tonic is used to build the chord.
void MidiPlayerTK.MidiStreamPlayer.MPTK_StopChord (MPTKChordBuilder chord)
 Stops the chord. All samples associated with the chord are stopped by sending a note-off.

Properties

string MidiPlayerTK.MidiStreamPlayer.MPTK_ScaleName [get]
 Name of the currently selected musical scale.
MPTKScaleName MidiPlayerTK.MidiStreamPlayer.MPTK_ScaleSelected [get, set]
 Currently selected scale.

Detailed Description

Build and play chords from scale or library definitions.

This chapter groups harmony helpers used in live workflows.

Main APIs

Enumeration Type Documentation

◆ MPTKChordName

List of available chords.

Version
Maestro Pro

◆ MPTKScaleName

List of available scales.

Version
Maestro Pro

Function Documentation

◆ MPTK_PlayChordFromScale()

MPTKChordBuilder MidiPlayerTK.MidiStreamPlayer.MPTK_PlayChordFromScale ( MPTKChordBuilder chord)

Plays a chord from the currently selected scale (MPTK_ScaleSelected). Tonic and degree are defined in the MPTKChordBuilder parameter. If no scale is selected, the major scale is used by default.See GammeDefinition.csv in Resources/GeneratorTemplate.

Version
Maestro Pro
using MidiPlayerTK; // Add a reference to the MPTK namespace at the top of your script
using UnityEngine;
public class YourClass : MonoBehaviour
{
// Reference the MidiStreamPlayer prefab added to your scene hierarchy.
public MidiStreamPlayer midiStreamPlayer;
// This object is passed to MPTK_PlayEvent to play an event.
MPTKEvent mptkEvent; */
Parameters
chordRequired: Tonic and Degree, in addition to the standard MIDI parameters.
Returns
The same MPTKChordBuilder instance, enriched with generated events.

◆ MPTK_PlayChordFromLib()

MPTKChordBuilder MidiPlayerTK.MidiStreamPlayer.MPTK_PlayChordFromLib ( MPTKChordBuilder chord)

Plays a chord from the chord library. See ChordLib.csv in Resources/GeneratorTemplate. The tonic is used to build the chord.

Version
Maestro Pro
Parameters
chordRequired: Tonic and FromLib, in addition to the standard MIDI parameters.
Returns
The same MPTKChordBuilder instance, enriched with generated events.

◆ MPTK_StopChord()

void MidiPlayerTK.MidiStreamPlayer.MPTK_StopChord ( MPTKChordBuilder chord)

Stops the chord. All samples associated with the chord are stopped by sending a note-off.

Version
Maestro Pro
Parameters
chordChord definition and generated events to stop.

Properties

◆ MPTK_ScaleName

string MidiPlayerTK.MidiStreamPlayer.MPTK_ScaleName
get

Name of the currently selected musical scale.

Version
Maestro Pro

◆ MPTK_ScaleSelected

MPTKScaleName MidiPlayerTK.MidiStreamPlayer.MPTK_ScaleSelected
getset

Currently selected scale.

Version
Maestro Pro