Comments (6)
ok should be fixed. sorry for the delay. just confirmed that in @tonejs/[email protected]
you can now do this:
import { Midi } from '@tonejs/midi'
from midi.
i think the files referenced in the package.json might be pointing to files that are no longer there.
from midi.
I have the very same issue.
@tambien What step do we need to take to work around that ?
from midi.
The library source code contains missing file references.
The @tonejs/midi/dist/Header.d.ts
file contains the source code line:
import { MidiData } from "./midi-file";
But there is no such ./midi-file
file in the directory.
from midi.
I removed the ./
suffixes in the few instances they were present in the library files, and this worked around the issue.
I still have another issue though.
from midi.
I wonder how to traverse the control changes:
This one traverses the map but returns undefined values:
Object.keys(midiTrack.controlChanges).map(key => {
const midiControl: any = midiTrack.controlChanges[key];
const control = new Control(midiControl.number, midiControl.time, midiControl.ticks, midiControl.value);
track.controls.push(control);
});
These two would not traverse the map:
Map.prototype.forEach((midiControl, key: number, midiTrack.controlChanges) => {
});
midiTrack.controlChanges.forEach((midiControl, key: number) => {
});
from midi.
Related Issues (20)
- error TS2305: Module 'midi-file' has no exported member 'MidiTrackData' HOT 1
- How can I execute a function when the MIDI file has ended? HOT 1
- no "PPQ" key in midi header in node.js HOT 3
- Cannot use ES6 import syntax in node HOT 1
- Converto Json to Midi HOT 2
- I am not able to add silences in a track HOT 2
- Changing note name in original midi
- Downloading midi file without Node HOT 2
- Encoding key signatur with wrong mapping of major & minor scales HOT 1
- Notes with Velocity of 0 is not always equivalent to Note off HOT 2
- Microtones HOT 1
- duration is calculated incorrectly...do not use end of last note to calculate duration of clip... HOT 1
- Adding control changes does not work
- Add a option to parse midi tracks without spliting It by channel / instrument
- Ability to edit `track.instrument` info (read-only for now)
- Timeout on midi.header.ticksToSeconds, when using a midi made by MuseScore. midi.tracks[0].endOfTrackTicks undefined. HOT 1
- NPM package outdated, causing MIDI lyric parsing issue
- Convert Midi into JSON HOT 2
- How to generate Piano sound with slight delay and how to play next midi file when user in play mode
- Quarter tones
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from midi.