You are not logged in.

#1 2019-09-25 12:57:24

ryu7
Member
Registered: 2019-05-29
Posts: 46

sounds .wav does not work when I use timidity -iA, only midi works!

Well I use RPG Maker 2003 and to listen midi files I need to use this command: timidity -iA, and midi files works but the .wav does not work. Please help with this issue!

Offline

#2 2019-09-25 14:08:29

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,431

Re: sounds .wav does not work when I use timidity -iA, only midi works!

Does

timidity -iA -Os

work better?

In general you need to provide more information on your setup, how is your audio configured normally? What's the output, in code tags of

sudo fuser -v /dev/snd/*
aplay -lL

Offline

#3 2019-09-25 14:18:32

ryu7
Member
Registered: 2019-05-29
Posts: 46

Re: sounds .wav does not work when I use timidity -iA, only midi works!

does not work timidity -iA -Os!

V1del wrote:

Does

timidity -iA -Os

work better?

In general you need to provide more information on your setup, how is your audio configured normally? What's the output, in code tags of

sudo fuser -v /dev/snd/*
aplay -lL

sudo fuser -v /dev/snd/*

                     USUÁRIO     PID ACESSO COMANDO
/dev/snd/controlC0:  gdm         773 F.... pulseaudio
                     rafa        997 F.... pulseaudio


aplay -lL

null
    Discard all samples (playback) or generate zero samples (capture)
jack
    JACK Audio Connection Kit
pulse
    PulseAudio Sound Server
default
    Default ALSA Output (currently PulseAudio Sound Server)
sysdefault:CARD=PCH
    HDA Intel PCH, ALC269VC Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC269VC Analog
    Front speakers
surround21:CARD=PCH,DEV=0
    HDA Intel PCH, ALC269VC Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC269VC Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC269VC Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC269VC Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC269VC Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC269VC Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=PCH,DEV=0
    HDA Intel PCH, HDMI 0
    HDMI Audio Output
usbstream:CARD=PCH
    HDA Intel PCH
    USB Stream Output
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC269VC Analog [ALC269VC Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Last edited by ryu7 (2019-09-25 14:19:16)

Offline

#4 2019-09-25 14:25:20

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,431

Re: sounds .wav does not work when I use timidity -iA, only midi works!

Can you repost those with timidity actually running? FWIW if you are using pulse anyway you are likely much better off with fluidsynth configured with pulse as the audio output backend and using

systemctl --user start fluidsynth

to start the daemon.

Offline

#5 2019-09-25 14:29:31

ryu7
Member
Registered: 2019-05-29
Posts: 46

Re: sounds .wav does not work when I use timidity -iA, only midi works!

V1del wrote:

Can you repost those with timidity actually running? FWIW if you are using pulse anyway you are likely much better off with fluidsynth configured with pulse as the audio output backend and using

systemctl --user start fluidsynth

to start the daemon.


timidity -iA -Os

Requested buffer size 32768, fragment size 8192
ALSA pcm 'default' set buffer size 32768, period size 8192 bytes
TiMidity starting in ALSA server mode
Opening sequencer port: 129:0 129:1 129:2 129:3

I have fluidsynth! and make what you say but wav works and midi does not work!

Offline

#6 2019-09-25 14:39:01

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,431

Re: sounds .wav does not work when I use timidity -iA, only midi works!

Does wav work while not using timidity? If it doesn't then that's an entirely different area to look into, however at least according to that output timidity correctly uses the default device that should be redirected over to pulse, what do you get for

pacmd list-sink-inputs

while attempting to play a wav?

Or are you actually attempting to play back wav files with timidity? That's not going to work...

Offline

#7 2019-09-25 14:45:01

ryu7
Member
Registered: 2019-05-29
Posts: 46

Re: sounds .wav does not work when I use timidity -iA, only midi works!

V1del wrote:

Does wav work while not using timidity? If it doesn't then that's an entirely different area to look into, however at least according to that output timidity correctly uses the default device that should be redirected over to pulse, what do you get for

pacmd list-sink-inputs

while attempting to play a wav?

Or are you actually attempting to play back wav files with timidity? That's not going to work...


.wav files works! but mid files does not work! I need timidity to play mid files on RPG Maker 2003

the output of pacmd list-sink-inputs is

0 sink input(s) available.

Offline

#8 2019-09-25 14:57:08

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,431

Re: sounds .wav does not work when I use timidity -iA, only midi works!

We need that during playback, if this is while playing back a midi file with timidity, then definitely switch over to fluidsynth. Also did you configure wine to play back to the correct device? Do other wine utilities show the same issues? Can you post output of running rpg maker in a terminal?

Offline

#9 2019-09-25 15:15:44

ryu7
Member
Registered: 2019-05-29
Posts: 46

Re: sounds .wav does not work when I use timidity -iA, only midi works!

V1del wrote:

We need that during playback, if this is while playing back a midi file with timidity, then definitely switch over to fluidsynth. Also did you configure wine to play back to the correct device? Do other wine utilities show the same issues? Can you post output of running rpg maker in a terminal?

I don't know how to post a output of rpg maker 2003! and no! it was not while was playback!
how to configure wine to correct device? I type winecfg and put  pulse audio only!

EDIT:
I don't know if you understand! but when I use timidity -iA the midi works on rpg maker but the sound of moviment of cursor(.wav) dissapear! It only happens on RPG Maker!

Last edited by ryu7 (2019-09-25 15:40:59)

Offline

#10 2019-09-27 08:43:40

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,431

Re: sounds .wav does not work when I use timidity -iA, only midi works!

I'm familiar with RPG Maker, FWIW I've only ever used it in conjunction with fluidsynth and pulseaudio and had no issues, while timidity shouldn't be grabbing the hardware directly, it is much less hasslefree to just use

fluidsynth -a pulseaudio -m alsa_seq -r 48000

Last edited by V1del (2019-09-27 08:44:05)

Offline

#11 2019-10-01 19:04:37

ryu7
Member
Registered: 2019-05-29
Posts: 46

Re: sounds .wav does not work when I use timidity -iA, only midi works!

V1del wrote:

I'm familiar with RPG Maker, FWIW I've only ever used it in conjunction with fluidsynth and pulseaudio and had no issues, while timidity shouldn't be grabbing the hardware directly, it is much less hasslefree to just use

fluidsynth -a pulseaudio -m alsa_seq -r 48000

returns:

FluidSynth runtime version 2.0.6
Copyright (C) 2000-2019 Peter Hanappe and others.
Distributed under the LGPL license.
SoundFont(R) is a registered trademark of E-mu Systems, Inc.

ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:869:(find_matching_chmap) Found no matching channel map
connect(2) call to /dev/shm/jack-0/default/jack_0 failed (err=No such file or directory)
attempt to connect to server failed
connect(2) call to /dev/shm/jack-0/default/jack_0 failed (err=No such file or directory)
attempt to connect to server failed
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave
connect(2) call to /dev/shm/jack-0/default/jack_0 failed (err=No such file or directory)
attempt to connect to server failed
fluidsynth: error: Failed to create PulseAudio connection
Failed to create the audio driver

Offline

#12 2019-11-11 18:31:39

ryu7
Member
Registered: 2019-05-29
Posts: 46

Re: sounds .wav does not work when I use timidity -iA, only midi works!

Sorry for the double post! But I need to turn on MIDI on RPG Maker! Please someone could help me?

Offline

#13 2019-11-11 20:53:19

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,431

Re: sounds .wav does not work when I use timidity -iA, only midi works!

Did you run that as root? don't do that.

You will also need to provide a sound font, e.g.

fluidsynth -a pulseaudio /usr/share/soundfonts/FluidR3_GM.sf2

, install soundfont-fluid for that.

Last edited by V1del (2019-11-11 21:05:05)

Offline

#14 2019-11-12 19:45:40

ryu7
Member
Registered: 2019-05-29
Posts: 46

Re: sounds .wav does not work when I use timidity -iA, only midi works!

V1del wrote:

Did you run that as root? don't do that.

You will also need to provide a sound font, e.g.

fluidsynth -a pulseaudio /usr/share/soundfonts/FluidR3_GM.sf2

, install soundfont-fluid for that.

I've intalled the two soundfonts! When I run this command

fluidsynth -a pulseaudio /usr/share/soundfonts/FluidR3_GM.sf2

return the same error above!

EDIT:
And no, I did not run like root

Last edited by ryu7 (2019-11-12 19:56:38)

Offline

#15 2019-11-15 09:41:45

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,431

Re: sounds .wav does not work when I use timidity -iA, only midi works!

Then that's probably GDMs pulse screwing fluidsynths detection. Try to disable pulse in GDM

Offline

#16 2019-11-15 18:39:49

ryu7
Member
Registered: 2019-05-29
Posts: 46

Re: sounds .wav does not work when I use timidity -iA, only midi works!

V1del wrote:

Then that's probably GDMs pulse screwing fluidsynths detection. Try to disable pulse in GDM

Didn't not work! I disabled with the command

sudo setfacl -m u:gdm:r /usr/bin/pulseaudio

I tried to access

/etc/pacman.d/hooks/pulseaudio.hook

but it says does not exist!

Offline

#17 2019-11-16 12:52:23

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,431

Re: sounds .wav does not work when I use timidity -iA, only midi works!

Yes you're supposed to create that. However it's irrelevant for now, after you've ran the facl command, reboot, check with the fuser command that gdm does in fact not have a pulse daemon on your audio devices, and then retry the fluidsynth command

Offline

#18 2019-11-16 22:00:48

ryu7
Member
Registered: 2019-05-29
Posts: 46

Re: sounds .wav does not work when I use timidity -iA, only midi works!

V1del wrote:

Yes you're supposed to create that. However it's irrelevant for now, after you've ran the facl command, reboot, check with the fuser command that gdm does in fact not have a pulse daemon on your audio devices, and then retry the fluidsynth command

Yes I did that I Reboot and after ran the fluidsynth command and nothing! Whats the fuse command?

I ran the fuser and after ran fluidsynt command and receive the same error! fuser shows a manual when I ran!

Last edited by ryu7 (2019-11-16 22:13:10)

Offline

Board footer

Powered by FluxBB