MBS FileMaker Plugin Example Databases

Midi Send

All examples are included with download of MBS FileMaker Plugin.

Midi Send.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts3
Value Lists0
Custom Functions0
Custom Menus33
File Options
Default custom menu set[Standard FileMaker Menus]
When opening file
Minimum allowed version12.0
Login usingAccount Name; Account= Admin
Allow user to save passwordOff
Require iOS passcodeOff
Switch to layoutOff
Hide all toolbarsOff
Script triggers
OnFirstWindowOpenOff
OnLastWindowCloseOff
OnWindowOpenOff
OnWindowCloseOff
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
Midi Send
1 field defined, 1 record
Midi Send

Fields

Table Name: Midi Send - 1 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
DeviceNameNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German

      Layout Objects: Midi Send

      Regular Fields

      Field Name: Midi Send::DeviceName
      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
      • Top: 24 pt
      • Left: 138 pt
      • Bottom: 38 pt
      • Right: 391 pt
      • Anchoring: Left, Top
      Field Format:
      • Edit Box
      Field Behavior:
      • Allow field to be entered: In Find mode, In Browse mode
      • Touch keyboard type: System Default
      • Go to next field using: Tab key
      Yes

      Group Buttons

      Button PropertiesCoordinatesScript/Script Step
        Type:
      • Text: Open Stream
        Additional Properties:
      • Change to hand cursor over button
      • Rectangular
      • Top: 54 pt
      • Left: 30 pt
      • Bottom: 79 pt
      • Right: 127 pt
      • Anchoring: Left, Top
      Perform Script [ “MidiInit” ]

      Scripts:


      Button PropertiesCoordinatesScript/Script Step
        Type:
      • Text: Close Stream
        Additional Properties:
      • Change to hand cursor over button
      • Rectangular
      • Top: 54 pt
      • Left: 138 pt
      • Bottom: 79 pt
      • Right: 235 pt
      • Anchoring: Left, Top
      Perform Script [ “MidiClose” ]

      Scripts:


      Button PropertiesCoordinatesScript/Script Step
        Type:
      • Text: C
        Additional Properties:
      • Change to hand cursor over button
      • Rectangular
      • Top: 174 pt
      • Left: 30 pt
      • Bottom: 199 pt
      • Right: 67 pt
      • Anchoring: Left, Top
      Perform Script [ “SendNote”; Parameter: 48 ]

      Scripts:


      Button PropertiesCoordinatesScript/Script Step
        Type:
      • Text: D
        Additional Properties:
      • Change to hand cursor over button
      • Rectangular
      • Top: 174 pt
      • Left: 72 pt
      • Bottom: 199 pt
      • Right: 109 pt
      • Anchoring: Left, Top
      Perform Script [ “SendNote”; Parameter: 48+2 ]

      Scripts:


      Button PropertiesCoordinatesScript/Script Step
        Type:
      • Text: E
        Additional Properties:
      • Change to hand cursor over button
      • Rectangular
      • Top: 174 pt
      • Left: 114 pt
      • Bottom: 199 pt
      • Right: 151 pt
      • Anchoring: Left, Top
      Perform Script [ “SendNote”; Parameter: 48+4 ]

      Scripts:


      Button PropertiesCoordinatesScript/Script Step
        Type:
      • Text: F
        Additional Properties:
      • Change to hand cursor over button
      • Rectangular
      • Top: 174 pt
      • Left: 156 pt
      • Bottom: 199 pt
      • Right: 193 pt
      • Anchoring: Left, Top
      Perform Script [ “SendNote”; Parameter: 48+5 ]

      Scripts:


      Button PropertiesCoordinatesScript/Script Step
        Type:
      • Text: C#
        Additional Properties:
      • Change to hand cursor over button
      • Rectangular
      • Top: 138 pt
      • Left: 54 pt
      • Bottom: 163 pt
      • Right: 91 pt
      • Anchoring: Left, Top
      Perform Script [ “SendNote”; Parameter: 48+1 ]

      Scripts:


      Button PropertiesCoordinatesScript/Script Step
        Type:
      • Text: D#
        Additional Properties:
      • Change to hand cursor over button
      • Rectangular
      • Top: 138 pt
      • Left: 96 pt
      • Bottom: 163 pt
      • Right: 133 pt
      • Anchoring: Left, Top
      Perform Script [ “SendNote”; Parameter: 48+3 ]

      Scripts:


      Button PropertiesCoordinatesScript/Script Step
        Type:
      • Text: G
        Additional Properties:
      • Change to hand cursor over button
      • Rectangular
      • Top: 174 pt
      • Left: 198 pt
      • Bottom: 199 pt
      • Right: 235 pt
      • Anchoring: Left, Top
      Perform Script [ “SendNote”; Parameter: 48+7 ]

      Scripts:


      Button PropertiesCoordinatesScript/Script Step
        Type:
      • Text: A
        Additional Properties:
      • Change to hand cursor over button
      • Rectangular
      • Top: 174 pt
      • Left: 240 pt
      • Bottom: 199 pt
      • Right: 277 pt
      • Anchoring: Left, Top
      Perform Script [ “SendNote”; Parameter: 48+9 ]

      Scripts:


      Button PropertiesCoordinatesScript/Script Step
        Type:
      • Text: B
        Additional Properties:
      • Change to hand cursor over button
      • Rectangular
      • Top: 174 pt
      • Left: 282 pt
      • Bottom: 199 pt
      • Right: 319 pt
      • Anchoring: Left, Top
      Perform Script [ “SendNote”; Parameter: 48+11 ]

      Scripts:


      Button PropertiesCoordinatesScript/Script Step
        Type:
      • Text: F#
        Additional Properties:
      • Change to hand cursor over button
      • Rectangular
      • Top: 138 pt
      • Left: 174 pt
      • Bottom: 163 pt
      • Right: 211 pt
      • Anchoring: Left, Top
      Perform Script [ “SendNote”; Parameter: 48+6 ]

      Scripts:


      Button PropertiesCoordinatesScript/Script Step
        Type:
      • Text: G#
        Additional Properties:
      • Change to hand cursor over button
      • Rectangular
      • Top: 138 pt
      • Left: 216 pt
      • Bottom: 163 pt
      • Right: 253 pt
      • Anchoring: Left, Top
      Perform Script [ “SendNote”; Parameter: 48+8 ]

      Scripts:


      Button PropertiesCoordinatesScript/Script Step
        Type:
      • Text: A#
        Additional Properties:
      • Change to hand cursor over button
      • Rectangular
      • Top: 138 pt
      • Left: 258 pt
      • Bottom: 163 pt
      • Right: 295 pt
      • Anchoring: Left, Top
      Perform Script [ “SendNote”; Parameter: 48+10 ]

      Scripts:


      Script Hierarchy

      MidiInit
      MidiClose
      SendNote

      Next Script: [MidiClose]
      Script NameMidiInit
      Run script with full access privilegesOff
      Include In MenuYes
      Layouts that use this script
      Scripts that use this script
        Script Definition
        Script Steps
        • Set Variable [ $r; Value:MBS("Trace") ]
        • Set Variable [ $DeviceID; Value:MBS("PortMidi.GetDefaultOutputDeviceID") ]
        • If [ GetAsNumber($DeviceID) >= 0 ]
        • Set Field [ Midi Send::DeviceName; MBS("PortMidi.GetDeviceInfo"; $DeviceID; "Name") ]
        • Set Variable [ $$stream; Value:MBS("PortMidi.OpenOutput"; $deviceID) ]
        • If [ MBS("ISError") ]
        • Show Custom Dialog [ Title: "Failed to open Device"; Message: $$stream; Default Button: “OK”, Commit: “No”; Button 2: “Cancel”, Commit: “No” ]
        • End If
        • Else
        • Set Field [ Midi Send::DeviceName; "" ]
        • Show Custom Dialog [ Message: "No MIDI output device found attached?"; Default Button: “OK”, Commit: “Yes”; Button 2: “Cancel”, Commit: “No” ]
        • End If
        Fields used in this script
        Scripts used in this script
          Layouts used in this script
            Tables used in this script
            Table occurrences used by this script
            Custom Functions used by this script
              Custom menu set used by this script

                Previous Script: [MidiInit]Next Script: [SendNote]
                Script NameMidiClose
                Run script with full access privilegesOff
                Include In MenuYes
                Layouts that use this script
                Scripts that use this script
                  Script Definition
                  Script Steps
                  • #Close stream if still open
                  • If [ GetAsNumber($$stream) > 0 ]
                  • Set Variable [ $r; Value:MBS("PortMidi.Close"; $$stream) ]
                  • Set Variable [ $$stream; Value:0 ]
                  • End If
                  Fields used in this script
                    Scripts used in this script
                      Layouts used in this script
                        Tables used in this script
                          Table occurrences used by this script
                            Custom Functions used by this script
                              Custom menu set used by this script

                                Previous Script: [MidiClose]
                                Script NameSendNote
                                Run script with full access privilegesOff
                                Include In MenuYes
                                Layouts that use this script
                                Scripts that use this script
                                  Script Definition
                                  Script Steps
                                  • Set Variable [ $note; Value:Get(ScriptParameter) ]
                                  • #send note on
                                  • Set Variable [ $r; Value:MBS("PortMidi.SendMessage"; $$stream; 144; $note; 95) ]
                                  • Pause/Resume Script [ Duration (seconds): ,1 ]
                                  • #send note off
                                  • Set Variable [ $r; Value:MBS("PortMidi.SendMessage"; $$stream; 128; $note; 95) ]
                                  Fields used in this script
                                    Scripts used in this script
                                      Layouts used in this script
                                        Tables used in this script
                                          Table occurrences used by this script
                                            Custom Functions used by this script
                                              Custom menu set used by this script

                                                Download example: Midi Send

                                                Used functions:




                                                Links
                                                MBS Xojo Plugins