Re: [LAD] Utility to read SMPTE LTC "audio" time-code

2009-04-08 Thread Robin Gareus
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Pau Arumí wrote:
> Hi all,
> 
> I'm facing the need of converting SMPTE LTC time-code* (encoded in an
> audio stream) into MTC timecode, to then route to other applications.
> Does anybody know a Linux application for that, or a library to decode
> that audio? Any advice will be appreciated.

ltcsmpte.sf.net en/decodes SMPTE.
It includes a simple JACK tool that displays incoming LTC and can encode
jack-transport to LTC.

An MTC encoder is not too hard, although synchronizing to quarter-frames
and compensating jack-latency requires some diligence.

robin
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAknc/mUACgkQeVUk8U+VK0KqgQCfeFFOAM3gAPRVo3X1oQilqcOD
KHwAn3rBGGnqEIobSIvrikXVytVwtk9v
=1SNY
-END PGP SIGNATURE-
___
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev


[LAD] lv2 sampleRate PortProperty seems not to work

2009-04-08 Thread Renato Fabbri
turtle rdf here:
http://svn.assembla.com/svn/audioexperiments/lv2plugs/filtro-notch/filtro-notch.ttl

if you go like:
svn co http://svn.assembla.com/svn/audioexperiments/lv2plugs/filtro-notch
make install

freq control is displaying only the fractions of the current sample rate,
not the fraction times the sample rate, that is, its actual frequency as it
is supposed to.

tested in ingen and ardour.

i found this same problem reported as an ardour bug report (
http://tracker.ardour.org/view.php?id=2611), but since i got the same
behavior in Ingen i dont know what to do.

any idea?
___
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev


[LAD] qt and jack

2009-04-08 Thread Gregorio Canelos
Greetings,
 
 I am trying to a connect a bare bones Qt-based client to the JACK audio server 
, and I am running into a strange run-time error.  I recently posted my 
question on the Qt-Interest list but have had no luck.  Maybe someone on this 
list would be kind enough to help...  

my Setup is:

-Fedora 10 -  2.6.26.8-1.rt16.1.fc10.ccrma.i686.rt #1 SMP PREEMPT RT Tue Feb 17 
15:48:24 EST 2009 i686 i686 i386 GNU/Linux
-Qt 4.50 (for Linux/X11)
-Jack audio connection kit



The .cpp files  which cause this error are here:


**
#include 
#include "MainWindow.h"
int main(int argc, char *argv[]) {
QApplication app(argc, argv);
MainWindow mainWindow;
mainWindow.show();
return app.exec();
}
*
#include "MainWindow.h"
MainWindow::MainWindow() {
QPushButton * b1 = new QPushButton("HELLO BUTTON",this);
audioEngine = new AudioEngine();
audioEngine->run();
}
MainWindow::~MainWindow() {
}
**
#include "AudioEngine.h"
using namespace std;
static int process(jack_nframes_t nframes, void *pvArg) {
AudioEngine * pAudioEngine = static_cast (pvArg);
return pAudioEngine->audioEngineProcess(nframes);
}
int AudioEngine::audioEngineProcess(jack_nframes_t nframes) {
currFrame = nframes;
return 0;
}
AudioEngine::AudioEngine() {
}
AudioEngine::~AudioEngine() {
}
void AudioEngine::run() {
const char * client_name = "Template Player";
jack_options_t options = JackNullOption;
jack_status_t status;
//   open a client connection to the JACK server
client = jack_client_open(client_name, options, &status);
if (client == NULL) {
fprintf(stderr, "jack_client_open() failed, status = 
0x%2.0x\n", status);
if (status & JackServerFailed) {
fprintf(stderr, "Unable to connect to JACK server\n");
}
exit(1);
}
if (status & JackServerStarted)
fprintf(stderr, "JACK server started\n");
if (status & JackNameNotUnique) {
client_name = jack_get_client_name(client);
fprintf(stderr, "unique name `%s' assigned\n", client_name);
}
jack_set_process_callback(client, process, 0);
//  jack_on_shutdown(client, jack_shutdown, 0);
//register the client ports
input_port = jack_port_register(client, "input", 
JACK_DEFAULT_AUDIO_TYPE,
JackPortIsInput, 0);
output_port = jack_port_register(client, "output", 
JACK_DEFAULT_AUDIO_TYPE,
JackPortIsOutput, 0);
if ((input_port == NULL) || (output_port == NULL)) {
fprintf(stderr, "no more JACK ports available\n");
exit(1);
}
jack_activate(client);
}

*
Everything compiles , but I am getting the following run-time error:

/usr/libexec/: No such file or directory.
Cannot access memory at address 0x7
Cannot access memory at address 0x7

Not sure what this means... I have registered a
 callback function with the JACK daemon and whenever
 I try to access the member variable currFrame from 
within the callback function I get that error.  
Has anyone seen this error before?

-Thank You!





  ___
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev


Re: [LAD] qt and jack

2009-04-08 Thread Luis Garrido
>   jack_set_process_callback(client, process, 0);

I think you should change this to

jack_set_process_callback(client, process, this);

jack will store that pointer to your object and pass it back in the
"process" call.

As things are now, you are getting back that 0 and you are casting
pAudioEngine to NULL.

HTH,

L
___
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev