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_관련_스크립트_모음 [2022/04/05 06:48] – [정해영의 run_fluidsynth script] hyjeongmusic_on_linux:audio_관련_스크립트_모음 [2023/09/08 04:08] (current) hyjeong
Line 204: Line 204:
  
 ===== 정해영의 run_fluidsynth script ===== ===== 정해영의 run_fluidsynth script =====
-JACK 구동 명령어를 스크립트 내에 삽입하였다.  --- //[[jeong0449@gmail.com|Haeyoung Jeong]] 2022/04/05 15:47//+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 241: Line 241:
   CMD="fluidsynth --server $option --reverb=0 --chorus=0 --gain=0.4 ${array[$input]}"   CMD="fluidsynth --server $option --reverb=0 --chorus=0 --gain=0.4 ${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_관련_스크립트_모음.1649141336.txt.gz · Last modified: 2022/04/05 06:48 by hyjeong