Nagging Mario's Princess

    @fluid-music/battery-4
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.1 • Public • Published

    Fluid Music adapter for Native Instruments Battery 4

    const fluid = require('fluid-music')
    const MidiNote = fluid.techniques.MidiNote
    const { Battery4Vst2, battery4Vst2Presets } = require('@fluid-music/battery-4')
    
    const session = new fluid.FluidSession({ bpm: 100 }, [
      { name: 'empty', plugins: [new Battery4Vst2] },
      // Bundled presets assume you have Kontakt's Factory Library installed
      { name: 'fiasco', plugins: [battery4Vst2Presets.fiasco()] },
      { name: 'fragment', plugins: [battery4Vst2Presets.fragment()] },
      { name: 'hipHop', plugins: [battery4Vst2Presets.hipHop()] },
    ])
    
    const tLibrary = {
      k: new MidiNote(36), // kick 1
      K: new MidiNote(37), // kick 2
      s: new MidiNote(38), // snare 
      S: new MidiNote(40), // snare
      h: new MidiNote(42), // closed hat
      H: new MidiNote(46), // open hat
    }
    
    session.insertScore({
      tLibrary,
      r:         '1 2 3 4 ',
      fiasco:   ['k h h sS'],
      fragment: ['        ','k h h sS'],
      hipHop:   ['        ','        ', 'k h h sS'],
    })
    
    session.saveAsReaperFile('session.RPP')
      .then(() => console.log('done'))
      .catch((e) => console.warn(e))

    Keywords

    Install

    npm i @fluid-music/battery-4

    DownloadsWeekly Downloads

    3

    Version

    0.0.1

    License

    ISC

    Unpacked Size

    285 kB

    Total Files

    12

    Last publish

    Collaborators

    • charlesholbrow
    • zhiweigan