Xonotic Forums
Tuba, tuba, tuba (and akkordeon too!) - Printable Version

+- Xonotic Forums (https://forums.xonotic.org)
+-- Forum: Community (https://forums.xonotic.org/forumdisplay.php?fid=6)
+--- Forum: Xonotic - General (https://forums.xonotic.org/forumdisplay.php?fid=18)
+--- Thread: Tuba, tuba, tuba (and akkordeon too!) (/showthread.php?tid=2555)

Pages: 1 2


Tuba, tuba, tuba (and akkordeon too!) - rafallus - 01-27-2012

Where to find?

There are several maps, that contain the Tuba. I know of two, feel free to add more:
-Xoylent (since certain autobuild), contains a Tuba in a secret room. To know, how to get there, watch this video made by Mirio:
http://www.youtube.com/watch?v=B7yuq53X4IQ
Note that this video was made on some older version, since secret room doesn't contain a tuba yet.
-bot-orchestra-stage, there are ALL weapons available from the beginning, including Tuba.

How to play?

Bear with me, it's gonna get a bit complicated.

You play different notes, whether you hold primary or secondary. Also, moving while playing, alters the note. There are 8 possible directions you can move, which gives you 18 different possibilities to play the note.

Primary fire, while stationary, plays a C note. Secondary fire, while stationary, plays a G note. Movement changes played note per fixed amount of semitones, depending on selected direction. Let me demonstrate current pattern (as of Jan 27) by the table, figured out by trial and error.

+3 +4 -1
+5 0 +2
-6 -5 -4

So, for example, if you move right, you add two semitones to note played if stationary. If you move backwards, you subtract 5 semitones from that base note, if you move forwards and to the left diagonally, you add 3 semitones to the base note, and so on.

Notes go like this:

C, C#, D, D#, E, F, F#, G, G#, A, A#, B, C and so on (sharped notes can alternately be written with flats, for example C#=Db, D#=Eb and so on)

So in the end you get those notes:

Primary fire:

D# E B
F C D
F# G G#

Secondary fire:

A# B F#
C G A
C# D D#

Also, by jumping, you raise played note by an octave (12 semitones) - essentially, it gives you the same note, but higher.
And by crouching you lower played note by an octave (credit goes to Halogene).

Use as a weapon

Tuba can also be used as an actual weapon - yes, you can totally frag enemies with it! Just hold fire, primary or alternate and stay close to the enemy. Tuba does obstruct quite a bit of your field of view, so it is pretty awkward to use as a weapon.

Akkordeon!

Thanks go to Halogene and Maddin for the information about this one.

When holding tuba, you can press reload (default: R) to switch to akkordeon. Mechanics of playing are the same, but of course it sounds different. You can then switch back and forth between both instruments with reload key.

Example

Try this melody:

CCGGAAG FFEEDDC GGFFEED GGFFEED CCGGAAG FFEEDDC


RE: Tuba, tuba, tuba - Cortez666 - 01-27-2012

i remember when we were testing rad ished's version of soylent.

Rad Ished and i where playing while -z- sat on the top and played twinkle twinkle little star. It was weird and fun.


RE: Tuba, tuba, tuba - Halogene - 01-27-2012

Tips for pros: use "reload" bind to switch to accordeon when holding the tuba.
Also see how the POWER OF MUSIC can make you FLOAT:

http://ompldr.org/vYzd3NA

Oh, and if you use crouch key, you play an octave lower, if I recall correctly.


RE: Tuba, tuba, tuba (and akkordeon too!) - Mr. Bougo - 01-27-2012

I think I remember at one point div talking about MIDI input bound to aliases that would let you play the tuba using a MIDI keyboard. Was that implemented?


RE: Tuba, tuba, tuba (and akkordeon too!) - Halogene - 01-27-2012

It's possible, I remember divVerent telling me, but I don't remember what you have to do. It would be awesome to meet on a server featuring the orchestra map and making music together with other people...


RE: Tuba, tuba, tuba (and akkordeon too!) - Mr. Bougo - 01-27-2012

Found!

http://git.xonotic.org/?p=xonotic/xonotic-data.pk3dir.git;a=blob;f=input-tuba.cfg;h=a129ed766f79e13a9898cf35b743c4fca4a0c6cd;hb=HEAD


RE: Tuba, tuba, tuba (and akkordeon too!) - divVerent - 02-03-2012

Docs/tuba.png Wrote:[Image: tuba.png]



RE: Tuba, tuba, tuba (and akkordeon too!) - BuddyFriendGuy - 04-02-2015

Nice fingering chart for Tuba, @divVerent! Better than the traditional one.


RE: Tuba, tuba, tuba - isgage - 11-12-2017

(01-27-2012, 06:44 AM)Cortez666 Wrote: i remember when we were testing rad ished's version of soylent.

Rad Ished and i where playing while -z- sat on the top and played twinkle twinkle little star. It was weird and fun.

how do you get past the door in soylent? what do i put as the admin name in i have stared a lan server? thanks! Smile


RE: Tuba, tuba, tuba (and akkordeon too!) - Lyberta - 11-12-2017

Mirio's video is no longer available.


RE: Tuba, tuba, tuba (and akkordeon too!) - martin-t - 11-12-2017

You have to deserve access. Hint: look through xoylent's .map file Wink

I wonder if we could get more people interested in development by including easter eggs and telling them to find out how they work by looking at the code. Smile


RE: Tuba, tuba, tuba (and akkordeon too!) - Lyberta - 11-13-2017

(11-12-2017, 06:42 AM)martin-t Wrote: You have to deserve access. Hint: look through xoylent's .map file Wink

I wonder if we could get more people interested in development by including easter eggs and telling them to find out how they work by looking at the code. Smile

Another git gud bullshit. We should rename Xonotic to Cuphead 3D.


RE: Tuba, tuba, tuba (and akkordeon too!) - northivanastan - 06-13-2018

Apparently reloading the Tuba twice now shows a bagpipe (or something of that sort)


RE: Tuba, tuba, tuba (and akkordeon too!) - SpiKe - 06-13-2018

(06-13-2018, 11:11 AM)northivanastan Wrote: Apparently reloading the Tuba twice now shows a bagpipe (or something of that sort)

It's a Klein Bottle: https://en.wikipedia.org/wiki/Klein_bottle
Cool


RE: Tuba, tuba, tuba (and akkordeon too!) - Halogene - 11-13-2020

Does this still work? I can't seem to get it to work, despite using ./all run -sndseqin 24:0 and aseqdump -p 24 correctly reacting to midi input... Anyone knows what I am missing?


RE: Tuba, tuba, tuba (and akkordeon too!) - Halogene - 11-16-2020

Hm, ok thank you. But just to get it right, using
Code:
./all run -sndseqin 24:0
followed by a
Code:
exec input-tuba.cfg
in Xonotic console, then going to single player deathmatch Xoylent and getting the tuba would be the right procedure to test this?


RE: Tuba, tuba, tuba (and akkordeon too!) - Halogene - 11-16-2020

I've seen that "it currently only works with ALSA", I am using pulseaudio but ALSA is present and basically usable. Do I need to tell Xonotic to use ALSA maybe?


RE: Tuba, tuba, tuba (and akkordeon too!) - Mr. Bougo - 11-17-2020

Wooh, old thread! Hello Halogene!

Can you have a look at your console output for lines relating to SndSys_Init ? The engine provides some info on MIDI sequencer device initialization when using -sndseq.


RE: Tuba, tuba, tuba (and akkordeon too!) - Halogene - 11-17-2020

Hi Mr.Bougo! Nice that you are still around :oD I don't find any SndSys_Init lines in console. I only get "S_Startup: initializing sound output format", but nothing else looks like it would do anything related to SndSys_Init. Maybe the -sndseqin option is not correct? It seems it doesn't register. If I use for example -sndseq instead of -sndseqin the output remains the same... :oS


RE: Tuba, tuba, tuba (and akkordeon too!) - Mr. Bougo - 11-17-2020

(11-17-2020, 05:34 AM)Halogene Wrote: Hi Mr.Bougo! Nice that you are still around :oD I don't find any SndSys_Init lines in console. I only get "S_Startup: initializing sound output format", but nothing else looks like it would do anything related to SndSys_Init. Maybe the -sndseqin option is not correct? It seems it doesn't register. If I use for example -sndseq instead of -sndseqin the output remains the same... :oS

Hi again!

After having a look, it seems like the SDL build uses its own sound lib and has no access to the ALSA MIDI device, so MIDI input is not defined.

You'll need to use the GLX build for that; that should build with ALSA by default on Linux and you should be seeing the message that I mentioned:
Code:
SndSys_Init: using the ALSA module

I managed to connect the output of VMPK to Xonotic but it's hard for me to test because I have to take focus away from Xonotic to hit the virtual MIDI keys Smile

If you can see the connection between your MIDI device and Xonotic with aconnect -l I think you'll be close!

EDIT: use at your own risk but it appears possible to make a SDL build with ALSA audio with those changes in the Darkplaces makefile.inc. The key inputs are sent and audio output appears to work, at least in the menu.
Code:
diff --git a/makefile.inc b/makefile.inc
index a08c5dbc..69ad7ff2 100644
--- a/makefile.inc
+++ b/makefile.inc
@@ -168,7 +168,7 @@ OBJ_MENU= \
# being linked, because it should be recompiled every time an executable is
# built to give the executable a proper date string
OBJ_SV= builddate.c sys_linux.o vid_null.o thread_null.o $(OBJ_SND_NULL) $(OBJ_COMMON)
-OBJ_SDL= builddate.c sys_sdl.o vid_sdl.o thread_sdl.o $(OBJ_MENU) $(OBJ_SND_COMMON) snd_sdl.o $(OBJ_SDLCD) $(OBJ_VIDEO_CAPTURE) $(OBJ_COMMON)
+OBJ_SDL= builddate.c sys_sdl.o vid_sdl.o thread_sdl.o $(OBJ_MENU) $(OBJ_SND_COMMON) $(OBJ_SOUND) $(OBJ_SDLCD) $(OBJ_VIDEO_CAPTURE) $(OBJ_COMMON)


# Compilation
@@ -236,7 +236,7 @@ CMD_UNIXMKDIR=mkdir -p
# Link
LDFLAGS_LINUXCL=$(LDFLAGS_UNIXCOMMON) -lrt -ldl $(LDFLAGS_UNIXCL)
LDFLAGS_LINUXSV=$(LDFLAGS_UNIXCOMMON) -lrt -ldl
-LDFLAGS_LINUXSDL=$(LDFLAGS_UNIXCOMMON) -lrt -ldl $(LDFLAGS_UNIXSDL)
+LDFLAGS_LINUXSDL=$(LDFLAGS_UNIXCOMMON) -lrt -ldl $(LDFLAGS_UNIXSDL) $(LIB_SOUND)


##### Mac OS X specific variables #####



RE: Tuba, tuba, tuba (and akkordeon too!) - Halogene - 11-18-2020

Wow, cool insights here, thank you! I will have to find out how to use the glx build from all script, but that's a challenge I'll try to master :o) Many thanks!


RE: Tuba, tuba, tuba (and akkordeon too!) - Mr. Bougo - 11-18-2020

(11-18-2020, 10:52 AM)Halogene Wrote: Wow, cool insights here, thank you! I will have to find out how to use the glx build from all script, but that's a challenge I'll try to master :o) Many thanks!

Oh sorry I left that out! No spoilers then, but don't forget to update the thread when you figure it out. You know where to find me if you want the answer Big Grin


RE: Tuba, tuba, tuba (and akkordeon too!) - Halogene - 11-18-2020

Haha, there I was thinking you'd just add the info here anyway and I get around investigating this myself conveniently but noo, you're just too polite! Xo)
But actually this was so easy to figure out that even I managed :oD a simple ./all help did the trick and this showed that I need to do

Code:
./all run glx -sndseqin 24:0 +exec input-tuba.cfg
And voilá, there I am playing the tuba on my midi keyboard. Awesome! If only there wasn't this lag... and it seems it's not really possible to play fast runs because the single notes seem to have a certain minimum length to play. But then again Xonotic isn't a midi instrument... ;o)
Thanks for helping, works beautifully!


RE: Tuba, tuba, tuba (and akkordeon too!) - Mr. Bougo - 11-19-2020

Awesome! You did insist on not getting a hint haha. Glad you found it easily Smile

About the input lag, the tuba balance cvars (g_balance_tuba_*) don't look like they would cause much delay (the animtime and refire are both 0.05 which is close to the ticrate of 0.0333333 second). Are you playing on a local server? I wonder how fast your fast runs are.


RE: Tuba, tuba, tuba (and akkordeon too!) - Halogene - 11-19-2020

I was playing a local game on Xoylent :o)
With fast runs I mean things like this: https://www.youtube.com/watch?v=fx3gcOpGnsQ
...ok I'm exaggerating, but even if I'd play that on 0.25 speed it wouldn't register properly. Anything faster than "are you sleeping" is troublesome :o/ and the tuba plays with like 0,2 secs lag which makes it really awkward to play in the first place. It feels like... ever seen the experiment of people wearing VR glasses and having artificial lag on their view? That's sort of the visual analogon to how it feels :oD
But as I said, it would be really displaced to expect Xonotic to work like a latency free synthesizer. I figure that's not what developers were focussing on when coding :o) I love the mere function of piping midi controls through to Xonotic, just awesome!