Re: [Bulk] Re: audio playback with variable tempo
On Fri, 2012-12-14 at 14:18 +0100, Ralf Mardorf wrote: > PS: Monitoring > > Latency --> > in hard -+-> A/D - in soft - out soft - D/A > | > +---> vol monitor -> out hard > No Latency --> I apologize. The converters just have some frames latency and it's more likely that the monitoring is converted too, to use the cards mixers, but the monitoring anyway only goes into the cards and out of the card, it doesn't cross the software route. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: [Bulk] Re: audio playback with variable tempo
PS: Monitoring Latency --> in hard -+-> A/D - in soft - out soft - D/A | +---> vol monitor -> out hard No Latency --> ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: audio playback with variable tempo
In freebsd-questions Digest, Vol 445, Issue 5, Message: 25 On Fri, 14 Dec 2012 09:52:53 +0100 Polytropon wrote: > On Thu, 13 Dec 2012 16:56:51 -0700, Gary Aitken wrote: > > On 12/12/12 23:51, Polytropon wrote: > > > On Wed, 12 Dec 2012 16:27:16 -0700, Gary Aitken wrote: > > >> Can anyone suggest an audio playback application that allows you to > > >> vary the > > >> tempo? I've used audacity on win systems, but I don't see that in > > >> ports. > > > > > > Except that audacity actually _is_ in ports, if you just > > > require "adjustable" speed (without editing / saving the > > > original file), you could use "mplayer -speed ", > > > or use "mplayer " and use the [ ] and { } keys to > > > adjust the speed (if you have OSD on, key 'o') you can > > > see the speed (if the file contains video; if not, the > > > output will be text only for information purposes). > > > > Thanks. > > Speed is not what I want to adjust, as it changes the pitch. > > The playback timing needs to be adjusted so everything has the same pitch, > > but just comes out faster or slower. > > Oh, I see. No problem - Audacity can do that. (And as it has > been suggested, if you need to apply batch operation, you > can use sox, also in ports.) sox(1) _can_ be daunting, but has this to say on the $subject: tempo [-q] factor [segment [search [overlap]]] Change the audio tempo (but not its pitch). The audio is chopped up into segments which are then shifted in the time domain and overlapped (cross-faded) at points where their wave- forms are most similar (as determined by measurement of `least squares'). By default, linear searches are used to find the best overlap- ping points; if the optional -q parameter is given, tree searches are used instead, giving a quicker, but possibly lower quality, result. factor gives the ratio of new tempo to the old tempo, so e.g. 1.1 speeds up the tempo by 10%, and 0.9 slows it down by 10%. The optional segment parameter selects the algorithm's segment size in milliseconds. The default value is 82 and is typically suited to making small changes to the tempo of music; for larger changes (e.g. a factor of 2), 50 ms may give a better result. When changing the tempo of speech, a segment size of around 30 ms often works well. The optional search parameter gives the audio length in mil- liseconds (default 14) over which the algorithm will search for overlapping points. Larger values use more processing time and do not necessarily produce better results. The optional overlap parameter gives the segment overlap length in milliseconds (default 12). See also speed for an effect that changes tempo and pitch together, pitch for an effect that changes tempo and pitch together, and stretch for an effect that changes tempo using a different algorithm. Works for me. Audacity may do more, but explain less what it's doing? > > However, I'm a little confused on what all the devices are related to > > audio. > > > > For the default device, which I've set to unit 3 (for pcm3), > > I see the following in /dev: dsp3.0 mixer3 > > What are each of these associated with? > > The mixer itself shows the following devices: > > vol, pcm, mix, rec, igain, ogain, monitor > > Can someone point me to documentation on what these are and how they > > interact? > > It's not obvious to me what the difference between vol and ogain, > > or rec and igain, are, for example. What is mix mixing, and what does > > monitor do? A schematic would be helpful... > > If I remember correctly, monitor is a monitor channel for the > inputs, so this channel contains what will be recorded (even > though only one of its sources can be recorded at a time). > It lets you listen to the recording source. Gary has a mix device too .. see below. > The manpage mentions several mixer devices: > > The list of mixer devices that may be modified are: > >vol, bass, treble, synth, pcm, speaker, line, mic, cd, mix, pcm2, >rec, igain, ogain, line1, line2, line3, dig1, dig2, dig3, phin, >phout, video, radio, and monitor. > > Not all mixer devices are available. > > True, my sound card doesn't have all of them. :-) :) I was going to challenge you on your 'only one at a time', when I discovered the AC97 in my Thinkpad T23 doesn't let me record from 'mix' either, which surprised me as years earlier I'd sometimes record from mix, usually line + mic, on an ancient Compaq 1500c (Celeron 300MHz, made in '98
Re: [Bulk] Re: audio playback with variable tempo
On Fri, 2012-12-14 at 09:52 +0100, Polytropon wrote: > On Thu, 13 Dec 2012 16:56:51 -0700, Gary Aitken wrote: > > On 12/12/12 23:51, Polytropon wrote: > > > On Wed, 12 Dec 2012 16:27:16 -0700, Gary Aitken wrote: > > What is mix mixing, and what does > > monitor do? A schematic would be helpful... > > If I remember correctly, monitor is a monitor channel for the > inputs, so this channel contains what will be recorded (even > though only one of its sources can be recorded at a time). > It lets you listen to the recording source. I don't know the OP's hardware, but some audio devices have a mixer hardware, so usually "monitoring" by the hardware has the advantage, that you can rout incoming signals to the software + directly to the output. This e.g. does avoid latency. >vol, bass, treble, synth, pcm, speaker, line, mic, cd, mix, pcm2, >rec, igain, ogain, line1, line2, line3, dig1, dig2, dig3, phin, >phout, video, radio, and monitor. Some of those terms are well-defined, others, e.g. "mix" perhaps are defined for some devices. My RME card does enable a "submix", that is something very special and there's a manual, that does explain this feature. For semi-pro and pro audio cards there usually are manuals available. > > pcm3 is an analog device, and pcm4 is digital; > > does that have anything to do with it? pcm is for digital signals of the computer, that by some audio devices can be routed, e.g. hardware output 1 - pcm 1 or hardware output 1 - hardware input 2 > I also assume the functionality depends on what > the hardware implements in reality, which may differ from > device to device. They most extreme differ. The most used semi-pro cards for sure are cards with an Envy24 chip, e.g. M-Audio, TerraTec, professional cards such as the RME cards can have something like "TotalMix: 760 channel Mixer with 42 bit internal resolution" and interfaces such as ADAT, AES/EBU + separated word clock IOs. Consumer devices usually support surround sound, can't be synced and don't have special interfaces, so the audio devices have completely different hardware mixers. Crap as pulseaudio is unable to handle semi-pro and pro cards and even for consumer cards, it does an automatically volume control that is insane. Usually the audio devices hardware mixer will be set up and then seldom be touched again, the usage of several faders in a chain, to control the volume of just one audio signal, only can be handled by experienced engineers. Regards, Ralf ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: audio playback with variable tempo
On Thu, 13 Dec 2012 16:56:51 -0700, Gary Aitken wrote: > On 12/12/12 23:51, Polytropon wrote: > > On Wed, 12 Dec 2012 16:27:16 -0700, Gary Aitken wrote: > >> Can anyone suggest an audio playback application that allows you to vary > >> the > >> tempo? I've used audacity on win systems, but I don't see that in ports. > > > > Except that audacity actually _is_ in ports, if you just > > require "adjustable" speed (without editing / saving the > > original file), you could use "mplayer -speed ", > > or use "mplayer " and use the [ ] and { } keys to > > adjust the speed (if you have OSD on, key 'o') you can > > see the speed (if the file contains video; if not, the > > output will be text only for information purposes). > > Thanks. > Speed is not what I want to adjust, as it changes the pitch. > The playback timing needs to be adjusted so everything has the same pitch, > but just comes out faster or slower. Oh, I see. No problem - Audacity can do that. (And as it has been suggested, if you need to apply batch operation, you can use sox, also in ports.) > However, I'm a little confused on what all the devices are related to audio. > > For the default device, which I've set to unit 3 (for pcm3), > I see the following in /dev: dsp3.0 mixer3 > What are each of these associated with? > The mixer itself shows the following devices: > vol, pcm, mix, rec, igain, ogain, monitor > Can someone point me to documentation on what these are and how they > interact? > It's not obvious to me what the difference between vol and ogain, > or rec and igain, are, for example. What is mix mixing, and what does > monitor do? A schematic would be helpful... If I remember correctly, monitor is a monitor channel for the inputs, so this channel contains what will be recorded (even though only one of its sources can be recorded at a time). It lets you listen to the recording source. The manpage mentions several mixer devices: The list of mixer devices that may be modified are: vol, bass, treble, synth, pcm, speaker, line, mic, cd, mix, pcm2, rec, igain, ogain, line1, line2, line3, dig1, dig2, dig3, phin, phout, video, radio, and monitor. Not all mixer devices are available. True, my sound card doesn't have all of them. :-) > For device /dev/dsp4, there is a dsp4.0 and dsp4.1, > which I thought would be the separate left and right channels; > but I only see a dsp3.0, not a dsp3.1, and there is definitely stereo sound. > pcm3 is an analog device, and pcm4 is digital; > does that have anything to do with it? That would probably be documented in the actual sound driver's documentation, as pcm and mixer are interfaces to the driver functionality (FreeBSD kernel mixer <-> hardware driver). Because of use the source Luke, I found "use igain for the mic 20dB boost" in /usr/src/sys/dev/sound/pcm/ac97.c. Maybe there are more hints to what the mixer devices actually do in the source tree. I also assume the functionality depends on what the hardware implements in reality, which may differ from device to device. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: audio playback with variable tempo
In freebsd-questions Digest, Vol 445, Issue 4, Message: 12 On Wed, 12 Dec 2012 16:27:16 -0700 Gary Aitken wrote: > Can anyone suggest an audio playback application that allows you to vary the > tempo? I've used audacity on win systems, but I don't see that in ports. You'll have found audacity by now, but audio/sox does that and a zillion other things (mixing, pitch bend, all sorts of filtering and effects ..) if you're happy working from commandline or scripts and can handle a HUGE man page that's pretty much a background to audio processing in general. It's very fast and light, too, for recording or playback. cheers, Ian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: audio playback with variable tempo
On 12/12/12 23:51, Polytropon wrote: > On Wed, 12 Dec 2012 16:27:16 -0700, Gary Aitken wrote: >> Can anyone suggest an audio playback application that allows you to vary the >> tempo? I've used audacity on win systems, but I don't see that in ports. > > Except that audacity actually _is_ in ports, if you just > require "adjustable" speed (without editing / saving the > original file), you could use "mplayer -speed ", > or use "mplayer " and use the [ ] and { } keys to > adjust the speed (if you have OSD on, key 'o') you can > see the speed (if the file contains video; if not, the > output will be text only for information purposes). Thanks. Speed is not what I want to adjust, as it changes the pitch. The playback timing needs to be adjusted so everything has the same pitch, but just comes out faster or slower. Found audacity and got it installed and working great. However, I'm a little confused on what all the devices are related to audio. For the default device, which I've set to unit 3 (for pcm3), I see the following in /dev: dsp3.0 mixer3 What are each of these associated with? The mixer itself shows the following devices: vol, pcm, mix, rec, igain, ogain, monitor Can someone point me to documentation on what these are and how they interact? It's not obvious to me what the difference between vol and ogain, or rec and igain, are, for example. What is mix mixing, and what does monitor do? A schematic would be helpful... For device /dev/dsp4, there is a dsp4.0 and dsp4.1, which I thought would be the separate left and right channels; but I only see a dsp3.0, not a dsp3.1, and there is definitely stereo sound. pcm3 is an analog device, and pcm4 is digital; does that have anything to do with it? Thanks for any enlightenment Gary ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: audio playback with variable tempo
On Wed, 12 Dec 2012 16:27:16 -0700, Gary Aitken wrote: > Can anyone suggest an audio playback application that allows you to vary the > tempo? I've used audacity on win systems, but I don't see that in ports. Except that audacity actually _is_ in ports, if you just require "adjustable" speed (without editing / saving the original file), you could use "mplayer -speed ", or use "mplayer " and use the [ ] and { } keys to adjust the speed (if you have OSD on, key 'o') you can see the speed (if the file contains video; if not, the output will be text only for information purposes). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: audio playback with variable tempo
On Wednesday 12 December 2012, Gary Aitken wrote: > Can anyone suggest an audio playback application that allows you to vary > the tempo? I've used audacity on win systems, but I don't see that in > ports. http://www.freebsd.org/cgi/ports.cgi?query=audacity&stype=all /usr/ports/audio/audacity current port is 2.0.2 -- Dave ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"