User Tools

Site Tools


music_on_linux:audio_관련_스크립트_모음

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
music_on_linux:audio_관련_스크립트_모음 [2021/03/23 08:28] hyjeongmusic_on_linux:audio_관련_스크립트_모음 [2023/09/08 04:08] (current) hyjeong
Line 204: Line 204:
  
 ===== 정해영의 run_fluidsynth script ===== ===== 정해영의 run_fluidsynth script =====
 +JACK 구동 명령어를 스크립트 내에 삽입하였다.  --- //2022/04/05 15:47//
   #!/usr/bin/env bash   #!/usr/bin/env bash
      
-  option="-a jack --connect-jack-outputs --reverb=1 --chorus=1 --gain=0.8"+  option="-a jack --connect-jack-outputs"
      
   if [ "$1" = "alsa" ] || [ "$1" = "-a" ] || [ "$1" = "-alsa" ]   if [ "$1" = "alsa" ] || [ "$1" = "-a" ] || [ "$1" = "-alsa" ]
Line 215: Line 216:
       elif ! pgrep -l jackd       elif ! pgrep -l jackd
       then       then
-          echo "Run JACK server prirot to running FluidiSynth!" +         echo 
-          exit+         echo "Starting JACK...!\n
 +         echo "jackd -d alsa --device hw:Intel --rate 44100 --period 128 &" 
 +         jackd -d alsa --device hw:Intel --rate 44100 --period 128 & 
 +         echo "Sleeping five seconds.." 
 +         sleep 5
   fi   fi
      
Line 234: Line 239:
   echo -n "Select sf2 index number: "   echo -n "Select sf2 index number: "
   read -r input   read -r input
-  CMD="fluidsynth --server $option --reverb=0 --chorus=0 --gain=0.${array[$input]}"+  CMD="fluidsynth --server $option --reverb=0 --chorus=0 --gain=0.${array[$input]}"
   $CMD   $CMD
 +
 +===== 정해영의 simple_synth 스크립트 =====
 +PulseAudio를 오디오 드라이버로 사용하는 매우 단순한 FluidSynth 구동 스트립트. 사운드 폰트 파일을 인수로 지정하지 않으면 FluidR3_GM.sf2가 로드된다.
 +
 +  #!/usr/bin/bash
 +  
 +  if [ -z "$1" ]
 +    then
 +        SF=/usr/share/sounds/sf2/FluidR3_GM.sf2
 +    else
 +        SF=$1
 +  fi
 +  echo -e "\nSoundFont file: $SF\n"
 +  fluidsynth -a pulseaudio -m alsa_seq -o midi.autoconnect=1 -r 48000 -g 0.5 $SF
 +  sleep 5
 +  connect_midi_keyboard
 +
 +===== connect_midi_keyboard =====
 +  aconnect -i
 +  aconnect -o
 +  echo
 +  aconnect "iCON iKeyboard" "FLUID Synth"
 +
 +
  
  
music_on_linux/audio_관련_스크립트_모음.1616488093.txt.gz · Last modified: 2021/03/23 08:28 by hyjeong