Jconv

What other apps and distros do you use to round out your studio?

Moderators: MattKingUSA, khz

studio32

Jconv

Post by studio32 »

I want to build jconv.

I've installed
FFTW 3.1
zita-convolver

I get:

Code: Select all

/jconv$ make
g++  -O3 -Wall -MMD -MP -DVERSION=\"0.2.0\"  -c -o impdata.o impdata.cc
impdata.cc: In member function 'int Impdata::sf_open_read(const char*)':
impdata.cc:264: error: 'SFC_WAVEX_GET_AMBISONIC' was not declared in this scope
impdata.cc:264: error: 'SF_AMBISONIC_B_FORMAT' was not declared in this scope
impdata.cc: In member function 'int Impdata::sf_open_write(const char*)':
impdata.cc:306: error: 'SFC_WAVEX_SET_AMBISONIC' was not declared in this scope
impdata.cc:306: error: 'SF_AMBISONIC_B_FORMAT' was not declared in this scope
make: *** [impdata.o] Error 1 
Any suggestions?
brummer

Post by brummer »

http://linuxmusicians.com/viewtopic.php?t=279&start=15
edit
the makefile uncomend line 30 CPPFLAGS += -DNOAMBIS=1
also you need libcltreads-dev (it's a standart lib in most repostorys).
studio32

Post by studio32 »

brummer wrote:http://linuxmusicians.com/viewtopic.php?t=279&start=15
edit
the makefile uncomend line 30 CPPFLAGS += -DNOAMBIS=1
also you need libcltreads-dev (it's a standart lib in most repostorys).
Thanks! Is there any documentation how to use jconv?

edit:

Code: Select all

jconv -h
found some info here: http://64studio.com/node/520


edit2: uh.. what to replace for what?

Code: Select all

# Replace by whatever required...
#
/cd /home/fons/acoustics/impresp
brummer

Post by brummer »

look in the floder with the demo_config files, there you find a lot examples. Jconv build a jackport after it is start and you can connect the output from your amp, synthy or what ever you use. It's a ImpulseResponse Convulution engine, that meens you can emulate different Rooms, speakers, .. . . in fakt the colour from the Sound :lol:
Therefor the convulution engine add the diff beetwen plain sound, and for example how it will sound in a bottle. This different is saved in a impulseresponse file (wav format) with you can load with jconv.

edit: replace with the path were you have saved the response files

greats brummer
studio32

Post by studio32 »

Ah ok thanks!
ggoode.sa
Established Member
Posts: 8
Joined: Wed Oct 08, 2008 5:51 pm

Re: Jconv

Post by ggoode.sa »

There is a nice Jconv 'how to' for Puppy Linux and Ubuntu at the South African Virtual Pipe Organ site: http://organs.110mb.com/jconv.htm. It has install packages for both distributions. Makes life a little easier than compiling :-)

GrahamG
Johannesburg, South Africa
studio32

Re: Jconv

Post by studio32 »

GrahamG, thanks for the links and welcome at this forum! :)
User avatar
funkmuscle
Established Member
Posts: 2811
Joined: Mon Jun 02, 2008 2:30 pm
Has thanked: 132 times
Been thanked: 34 times

Re: Jconv

Post by funkmuscle »

funny this was just posted as I was doing the same thing but from Dave Phillips.
half way through the article, he explains jconv
http://www.linuxjournal.com/content/kok ... adriaensen

I have the script written for loading guitar cab/amps impulse responses files. Work really well. this could mean for me, bye bye to vst as I only use vst plugins that load IR files.
User avatar
funkmuscle
Established Member
Posts: 2811
Joined: Mon Jun 02, 2008 2:30 pm
Has thanked: 132 times
Been thanked: 34 times

Re: Jconv

Post by funkmuscle »

has anyone figured out what the offset and delay option in the jconv .conf files do or how to use it?
thorgal
Established Member
Posts: 739
Joined: Mon Apr 07, 2008 6:04 pm

Re: Jconv

Post by thorgal »

hey,

I just tried jconv with free Lexicon IR files picked from http://www.kvraudio.com/forum/viewtopic.php?p=2102159

Some comments:

I had to convert all wav files to 96kHz (no big deal, I have a shell script to do this automatically). However, I had to use a dev version of libsndfile because version 1.0.17 shipped with debian would not open the wav files, complained about some crap. The dev version (1.0.18prexx) did it no sweat. Once they were converted, the packaged libsndfile (1.0.17) could handle them. Anyway, minor annoyance but worked around.

Now, back to jconv. It's just amazing!! I think I can save a lot of bucks for my studio :)
It just needs a GUI so you can load IRs on the fly, adjust the parameters on the fly too (channels, gain, offset, delay, etc).

I haven't fiddled too much with these parameters, only the gain as I got different output gains depending on the IR file used. But to reply to funkmuscle, I guess (and it's only a guess) delay and offset are straightfoward :
- offset : where you set the start of the impulse response (early or far in the IR tail). An offset of 0 would mean as early as possible (all the IR tail minus the original IR sound - if you play the IR wav file, you will understand what I mean, there's always a loud noise that starts the IR)
- delay : when the impulse response should kick in when jconv receives the input audio
That's my rough guess.
Last edited by thorgal on Sun Oct 19, 2008 3:42 pm, edited 1 time in total.
studio32

Re: Jconv

Post by studio32 »

Interesting, maybe you can share that script?
thorgal
Established Member
Posts: 739
Joined: Mon Apr 07, 2008 6:04 pm

Re: Jconv

Post by thorgal »

which script ? the resampling script ?
studio32

Re: Jconv

Post by studio32 »

thorgal wrote:which script ? the resampling script ?
to convert all wav files to 96kHz
this one?
thorgal
Established Member
Posts: 739
Joined: Mon Apr 07, 2008 6:04 pm

Re: Jconv

Post by thorgal »

put the following in e.g. resample_wav.sh and save it to /home/yourself/bin or /usr/local/bin. Then chmod it to +x :
sudo chmod +x /usr/local/bin/resample_wav.sh

This is crude but I hope it is self explanatory.

Code: Select all

#!/bin/sh

### export LD_LIBRARY_PATH=/usr/local/lib
newrate=96000
opt=$1
val=$2
### prog=/home/thorgal/src/libsamplerate-0.1.4/examples/sndfile-resample
prog=/usr/bin/sndfile-resample


if [ -n "$opt" ]; then
   if [ "$opt" != "-r" ]; then
      echo " *** command line option is -r <your sample rate value>"
      echo "     example : resample_wav.sh -r 48000"
      echo "     You can also do it without option, internal default is 96000"
      exit 1
   fi
   if [ -z "$val" ]; then
      echo " *** if you're using the -r option, provide a sample rate value"
      exit 2
   fi
   newrate=$val
fi

echo " RESAMPLING ALL WAV FILES to NEW SAMPLERATE $newrate ... "
echo " ========================================================"

for fname in `ls -1 | sed -e 's/ /-/g'`; do
    # let's get rid of stupid spaces in file names : replace with -
    fname_old=$(echo $fname|sed 's/-/ /g')
    mv "$fname_old" $fname
    wav_file=`file $fname | grep "WAVE audio"`
    if [ -z "$wav_file" ]; then
	echo "'$fname' is NOT a wav file, skipping ..."
    else
	mv $fname $fname.old && $prog -to $newrate -c 0 $fname.old $fname && rm $fname.old
    fi
done
User avatar
funkmuscle
Established Member
Posts: 2811
Joined: Mon Jun 02, 2008 2:30 pm
Has thanked: 132 times
Been thanked: 34 times

Re: Jconv

Post by funkmuscle »

thorgal, you rock. thanx. about the gui, brummer will be addinf jconv to guitarix so it will have a gui and also, brummer told me in a thread:
http://linuxmusicians.com/viewtopic.php ... a&start=45
that the developer is working on a gui.
Post Reply