Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export to WAV, MP3 #62

Closed
revskill10 opened this issue Sep 9, 2015 · 13 comments
Closed

Export to WAV, MP3 #62

revskill10 opened this issue Sep 9, 2015 · 13 comments
Labels

Comments

@revskill10
Copy link

revskill10 commented Sep 9, 2015

Hi.

I can play alda file, but how can i export the sound into .MIDI / Mp3 file ?
Thank you.

@daveyarwood
Copy link
Member

Hi @checkraiser ,

This is a planned feature -- we'll keep this issue open until we've implemented it.

Sorry for the inconvenience!

@daveyarwood daveyarwood changed the title How to export to MIDI Export to MIDI, WAV, MP3 Sep 10, 2015
@refi64
Copy link

refi64 commented Sep 10, 2015

FWIW, you could probably just export to only MIDI and use TiMidity++ for the rest.

@daveyarwood
Copy link
Member

@kirbyfan64 That's not a bad idea. However, Alda will eventually support combining different types of instruments (MIDI vs. waveform oscillator vs. sampled instrument) into a single score, so being able to export to wav is probably our biggest prerogative.

Being able to export to MIDI (excluding non-MIDI instruments) would be a nice feature too, though.

@190n
Copy link

190n commented Sep 29, 2015

+1

@daveyarwood
Copy link
Member

Gathering info for export to wav:

There does not exist, as far as I can tell, a Clojure library to capture the sound output of the current program and export it to wav. But it does appear to be possible, via Java inter-op. This would be a good potential opportunity to build a simple open-source Clojure library for exporting to wav, which we could use to implement this feature in Alda.

Some links, for reference:

Once we have a way to export to wav, we can shell out to a CLI tool like LAME to convert to MP3. I think it would be cool to have some degree of this built-into Alda, so it will be extra convenient for users to export scores as mp3s. Something like alda export --file /path/to/score.alda --output /path/to/score.mp3, with optional additional flags to specify compression type/quality would be awesome. We could look at the extension of the output file to determine whether the user wants to convert to mp3.

On my wish list is the ability to export to wav/mp3 without also playing the score and having to wait for it to finish playing, but I think that would be pretty hard to implement. I'd be interested, if anyone has any ideas on how to do that.

@daveyarwood daveyarwood changed the title Export to MIDI, WAV, MP3 Export to WAV, MP3 Nov 11, 2015
@daveyarwood
Copy link
Member

daveyarwood commented Aug 24, 2016

@190n
Copy link

190n commented Aug 24, 2016

I don't think it needs to have MP3 export -- if it can export to WAV, most programs can already play it, and people can convert it into any other format.

@elydpg
Copy link
Contributor

elydpg commented Aug 24, 2016

Agreed. Raw audio, on the other hand, is another story (although I'm not sure the file format for raw audio. I do know that Audacity, for example, can deal with uncompressed audio).

Also Don't forget about MIDI export (#145)

@elydpg
Copy link
Contributor

elydpg commented Aug 24, 2016

We should probably combine exporting into a single issue...

@190n
Copy link

190n commented Aug 24, 2016

I know WAV is uncompressed, but I'm not sure if it's considered "raw". I think a lot of audiophiles use FLAC (Free Lossless Audio Codec) for really high-quality audio.

@daveyarwood
Copy link
Member

From an implementation perspective, I think exporting to MIDI and exporting
to WAV are two separate issues, which will need to be solved in different
ways. So, I would rather keep the two issues separate.

I agree about exporting to mp3 not being necessary as a feature of Alda.
Using LAME on the command-line to do the conversion is easy enough.

On Aug 24, 2016 1:08 PM, "elyisgreat" [email protected] wrote:

We should probably combine exporting into a single issue...


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#62 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AEroF-Qd5R1ThfWyWrV1sqNxO0H4mH0Aks5qjHqfgaJpZM4F5-85
.

@daveyarwood
Copy link
Member

@yuanzhiqian
Copy link

still not ready yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants