Closed kittypurrry closed 4 months ago
Thanks for the contribution!!
This would close #147 cc @ryangtanaka-org
If no one did I can review this tuesday or the next day
I installed this on https://preview.teia.art/objkt/850481
This PR adds support for minting .mid, .midi file types in the MintForm component.
It looks like something happened in your recent commits as I don't see the mint related edits. Only the token viewer for .midi
This PR adds support for minting
.mid
,.midi
file types in theMintForm
component.Preview / Token Page Example:
https://localhost:3000/objkt/853348
The preview component displays a Midi Player, and the auto ggenerated cover image, inline with Teia's current UI.
Feed Page
Midi NFTs are displayed similarly to Audio NFTs on Teia's feed listing page. Clicking on the play button plays the .mid soundfile.
Notes
--
Update: 21/04:
global
definition and set it asglobalThis
in thevite.config.js
, this caused some issues when building because some of the files in@magenta/music
as required by the HTML midi player package is importing a file with the nameglobal
(i.e global.js). The rules invite.config.jq
automatically resolves such file names to 'globalThis' and this causes an error since the file cant be found. Added aliases to thevite.config.js
in order to workaround this issue.Update 16/06:
generateMidiCover
to automatically generate midi covers based on the MidiJSON object tracks and notes within each track. Each track will be represented in a different opacity shade of white based on the track # in the midi JSON object. Any mints with mime typeaudio/mid
oraudio/midi
will no longer be required to upload a cover image file.