You are not logged in.

#1 2014-01-06 10:40:10

hildensia
Member
Registered: 2012-06-29
Posts: 6

playalong - a music file player/looper for musicians

Hi all,

I wrote a simple little tool for playing along to your favorite music: playalong. It's a simple music player which can set a A-B repeat very precisely (i.e. 10 ms steps). That comes very handy if you want to loop a specific beat from your favorite song you want to play guitar/drums/the flute/whatever to. So far it has a very simplistic ncurses interface. Maybe I start some real GUI later.

It's available under github: http://github.com/hildensia/playalong

Future features should include adjusting the speed of the song, without affecting the pitch and configurable key maps. I just wrote it during the last two days, so bugs might sit here and there. Feel free to write issue reports on github.

Offline

#2 2014-01-28 16:27:20

bladdo
Member
From: Blacksburg, VA
Registered: 2008-05-05
Posts: 111
Website

Re: playalong - a music file player/looper for musicians

Thank you sir -- I'd be looking for something like this for a while.
This is perfect for sampling out.
Looking forward to updates.

Any chance of a PKGBUILD?


bladdo / mil / Miles
userbound.com - blog and projects

Offline

#3 2014-01-28 16:45:32

hildensia
Member
Registered: 2012-06-29
Posts: 6

Re: playalong - a music file player/looper for musicians

I can make a PKGBUILD, but not before the weekend - some deadlines are approaching smile

Offline

#4 2014-01-28 17:01:53

bladdo
Member
From: Blacksburg, VA
Registered: 2008-05-05
Posts: 111
Website

Re: playalong - a music file player/looper for musicians

Ha that's cool, not tons of free time here either. But a week or so ago I was chopping up some tracks for beats on my SP303 and this came in handy because I could seek around to just the part I wanted to sample out, loads easier than using mplayer. Also DJ'ing with playalong is pretty low-fidelity but pretty fucking awesome.

Just wanted to pay my props.


bladdo / mil / Miles
userbound.com - blog and projects

Offline

#5 2014-01-30 20:16:59

dgz
Member
Registered: 2013-08-27
Posts: 98

Re: playalong - a music file player/looper for musicians

this looks like exactly the thing i've been searching hopelessly for over the last three days. will be trying asap.

i have all the dependencies install but i get this on trying to compile it:

g++ -g -std=c++0x -c main.cpp
main.cpp: In function ‘int main(int, char**)’:
main.cpp:19:24: error: no matching function for call to ‘SoundStream::SoundStream(std::string&)’
   SoundStream song(file);  
                        ^
main.cpp:19:24: note: candidates are:
In file included from main.cpp:1:0:
sound_stream.h:15:7: note: constexpr SoundStream::SoundStream()
 class SoundStream {
       ^
sound_stream.h:15:7: note:   candidate expects 0 arguments, 1 provided
sound_stream.h:15:7: note: constexpr SoundStream::SoundStream(const SoundStream&)
sound_stream.h:15:7: note:   no known conversion for argument 1 from ‘std::string {aka std::basic_string<char>}’ to ‘const SoundStream&’
main.cpp:19:15: error: cannot declare variable ‘song’ to be of abstract type ‘SoundStream’
   SoundStream song(file);  
               ^
In file included from main.cpp:1:0:
sound_stream.h:15:7: note:   because the following virtual functions are pure within ‘SoundStream’:
 class SoundStream {
       ^
sound_stream.h:17:19: note: 	virtual pos_t SoundStream::get_pos()
     virtual pos_t get_pos() = 0;
                   ^
sound_stream.h:18:18: note: 	virtual void SoundStream::set_pos(pos_t)
     virtual void set_pos(pos_t ms) = 0;
                  ^
sound_stream.h:19:18: note: 	virtual void SoundStream::set_loop(bool)
     virtual void set_loop(bool loop) = 0;
                  ^
sound_stream.h:20:23: note: 	virtual uint16_t* SoundStream::get_next_frame(uint&)
     virtual uint16_t *get_next_frame(uint& frame_size) = 0;
                       ^
sound_stream.h:21:18: note: 	virtual uint SoundStream::get_channels()
     virtual uint get_channels() = 0;
                  ^
sound_stream.h:22:28: note: 	virtual AVSampleFormat SoundStream::get_sample_fmt()
     virtual AVSampleFormat get_sample_fmt() = 0;
                            ^
sound_stream.h:23:18: note: 	virtual uint SoundStream::get_sample_rate()
     virtual uint get_sample_rate() = 0;
                  ^
sound_stream.h:24:19: note: 	virtual pos_t SoundStream::get_duration()
     virtual pos_t get_duration() = 0;
                   ^
sound_stream.h:25:24: note: 	virtual metadata_t SoundStream::get_metadata()
     virtual metadata_t get_metadata() = 0;
                        ^
make: *** [main.o] Error 1

not sure what the issue is.

Last edited by dgz (2014-01-31 00:35:41)

Offline

#6 2014-02-18 16:35:35

hildensia
Member
Registered: 2012-06-29
Posts: 6

Re: playalong - a music file player/looper for musicians

Hi, sorry for the late response. That was actually a bug in the repo. Should be fixed now. I just uploaded a a PKGBUILD to AUR, so you should be able to install via yaourt or whatever you're using. Please do bugreports in github, then I will read them earlier...

I also implemented a phase vocoder during the last couple of days. It's not really integrated in the user interface, but if you want to have a look at it, you can get the phasevocoder branch. If you build the src tree your sound should be quite a bit slower... But it takes a while to compute it. I'll be working on it.

Offline

#7 2014-02-18 18:30:07

sekret
Member
Registered: 2013-07-22
Posts: 206

Re: playalong - a music file player/looper for musicians

PKGBUILD

edit: oops, there's already one in the AUR. But please look at mine, since yours doesn't let pacman handle the git checkout.

Last edited by sekret (2014-02-18 18:32:05)

Offline

#8 2014-02-18 21:35:54

hildensia
Member
Registered: 2012-06-29
Posts: 6

Re: playalong - a music file player/looper for musicians

Your's look more mature... I have merged them. Can you have a look, if that fits?

Offline

#9 2014-02-19 06:14:18

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: playalong - a music file player/looper for musicians

Extremely cool program for looping my guitar rhythms. Thanks!

Offline

Board footer

Powered by FluxBB