Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /storage/content/49/145849/famitracker.com/public_html/forum/classes/dbHandler.php on line 29 FamiTracker
Login:
Menu:
Post: Author:
FamiTracker > General > FamiTracker Talk > I'm new and What's going on in N106's sound? Owner: CaramelPuffpuff New post
Page 1 of 12 Sort: Goto Page: [1] [2] [3] [4] [5] [6] ... [10] [11] [12] Next >>
I'm new and What's going on in N106's sound? Posted: 2013-02-13 02:06 Reply | Quote
CaramelPuffpuff

Avatar

Member for: 3438 days
Status: Offline

#44432
When I'm making music N106 version, it sound soooo cool...but the problem is:

When I put two/three notes or more in an exact octave, all three/two of them will sound exactly the same. My apologies for explaining wrong, so I'll try to explain right:

There's one instrument, with three WAV #: 50%, 25%, and a Sawtooth.

All of them has the [b]same sounding of THREE sawtooth instead of seperately[/b].

Is this a glitch or is there something I didn't know?


P.S. I'm new here; planning to make my own NES games....offtopic I know but....I don't know the perfect program that is use to code NES.

Posted: 2013-02-13 02:09 Reply | Quote
rainwarrior

Avatar

Member for: 4150 days
Location: Canada
Status: Offline

#44433
All the wave samples in N163 instruments have to share the sample memory, basically you need to put each one in their own position and ensure they don't overlap.

[url=http://famitracker.com/wiki/index.php?title=Instruments#Namco_163_instruments]http://famitracker.com/wiki/index.php?title=Instruments#Namco_163_instruments

Posted: 2013-02-13 02:11 Reply | Quote
CaramelPuffpuff

Avatar

Member for: 3438 days
Status: Offline

#44434
[quote=rainwarrior]All the wave samples in N163 instruments have to share the sample memory, basically you need to put each one in their own position and ensure they don't overlap.

[url=http://famitracker.com/wiki/index.php?title=Instruments#Namco_163_instruments]http://famitracker.com/wiki/index.php?title=Instruments#Namco_163_instruments[/quote]

I'm somewhat not good with English, sorry...what do you mean "Put each one in their own position and ensure they don't overlap."?

(Wow, quick reply!)

Posted: 2013-02-13 02:26 Reply | Quote
rainwarrior

Avatar

Member for: 4150 days
Location: Canada
Status: Offline

#44435
You have 128 samples in your sample memory.

If your wave is 32 samples long, and you put it at position 0, it will use samples 0-31 in memory.

If you have 3 instruments, each 32 samples long, put them at positions: 0, 32, 64.

This will use samples 0-31, 32-63, 64-95.

If the ranges overlap, instruments will conflict with each other, and you will only hear one of the waves.

Posted: 2013-02-13 02:53 Reply | Quote
Doxic

Avatar

Member for: 3575 days
Location: California, United States
Status: Offline

#44441
Let me show you what rainwarrior means.

Right Click one of the instruments, go to "edit" and then "wave" look at "wave position" on the right side, when you make a new instrument, with a different waveform, you will need to change that position. If you need more, click on the box above it and lower that value! Hope this helps! :3

_______________________
B00daW wrote: Memes are are like cheese; perishable.
Follow me on SoundCloud! http://soundcloud.com/thislinkisnttaken
Attachments:
n163example.ftm (1 Kb)
Posted: 2013-02-14 01:28 Reply | Quote
CaramelPuffpuff

Avatar

Member for: 3438 days
Status: Offline

#44481
Hmmm...what happens if both 2/3 of the instruments has the same numbers, but it is 32, 33, and 34?

Posted: 2013-02-14 01:34 Reply | Quote
CaramelPuffpuff

Avatar

Member for: 3438 days
Status: Offline

#44482
[quote=Doxic]Let me show you what rainwarrior means.

Right Click one of the instruments, go to "edit" and then "wave" look at "wave position" on the right side, when you make a new instrument, with a different waveform, you will need to change that position. If you need more, click on the box above it and lower that value! Hope this helps! :3[/quote]

Whoa!...This sound complicated to explain this...Uhh..how does the Wave size and position works? I think wave size means higher pitch if it's shorter...

Posted: 2013-02-14 03:17  (Last Edited: 2013-02-14 03:20) Reply | Quote
jrlepage
Moderator

Avatar

Member for: 4983 days
Location: Canada
Status: Offline

#44489
If your wave has 32 samples, and you assign it to position 0, it will occupy all positions from 0 to 31.

If your wave has 16 samples, and you assign it to position 0, it will occupy all positions from 0 to 15.

If you have two 32-sample waves, one sitting in position 0, and another sitting in position 1, and you try to play both at once, then the one in position 1 will "rewrite" the other wave, except for the first sample of the first wave.

Let's say your first wave looks like this:
[color=red][b]0-1-0-1-0-1-0-1-0-1-0-1-0-1-0-1-0-1-0-1-0-1-0-1-0-1-0-1-0-1-0-1[/b]

and your second wave looks like this:
[color=green][b]1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2[/b]

then the result of putting the first one in position 0 and the second one in position 1, if you try to read from position 0, will be:
[b][color=red]0-[color=green]1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1[/b]

_______________________
Follow me on [url=https://twitter.com/jrlepage2a03]Twitter.
I record (some) NSFs on hardware. Feel free to [url=http://www.famitracker.com/forum/posts.php?id=3633]request a hardware render.
Posted: 2013-02-15 10:34 Reply | Quote
Patashu

Avatar

Member for: 3749 days
Location: Sydney, Australia
Status: Offline

#44537
How come we don't have automatic N163 wave management (ala memory managed programming language) yet?

Posted: 2013-02-15 10:53 Reply | Quote
rainwarrior

Avatar

Member for: 4150 days
Location: Canada
Status: Offline

#44539
Maybe a suggestion would be to have a checkbox below wave position that says "auto", which you can only check off if the wave length is <= 128 / channels. At that point it's trivial to just give each channel its own set of wave data.

Posted: 2013-02-15 15:43 Reply | Quote
jrlepage
Moderator

Avatar

Member for: 4983 days
Location: Canada
Status: Offline

#44540
Some interesting techniques can be used with manual wave position assignment which you could not achieve otherwise. For example, you could have a 32-sample triangle wave in position 0-31, and while that's playing, you could re-use only half of that wave to play a sawtooth wave, without wasting space. You could also re-write that portion of the wave on the go, which would also affect what was originally the triangle wave (usually you don't want memory conflicts, but sometimes this might be desirable).

I realise this isn't very clear. Right now I'm on a mobile, but as soon as I can get on a PC, I'll post one or two FTM examples.

_______________________
Follow me on [url=https://twitter.com/jrlepage2a03]Twitter.
I record (some) NSFs on hardware. Feel free to [url=http://www.famitracker.com/forum/posts.php?id=3633]request a hardware render.
Posted: 2013-02-15 16:00  (Last Edited: 2013-02-15 16:09) Reply | Quote
MovieMovies1

Avatar

Member for: 4373 days
Location: Norway
Status: Offline

#44541
[quote=jrlepage]you could have a 32-sample triangle wave in position 0-31, and while that's playing, you could re-use only half of that wave to play a sawtooth wave, without wasting space.[/quote]

You mean something like this?


Attachments:
wave_reusing.ftm (4 Kb)
Posted: 2013-02-15 21:11 Reply | Quote
jrlepage
Moderator

Avatar

Member for: 4983 days
Location: Canada
Status: Offline

#44550
Like I said, I'm on a mobile device right now so I can't open FTM files (or make any).

_______________________
Follow me on [url=https://twitter.com/jrlepage2a03]Twitter.
I record (some) NSFs on hardware. Feel free to [url=http://www.famitracker.com/forum/posts.php?id=3633]request a hardware render.
Posted: 2013-02-15 21:42 Reply | Quote
CaramelPuffpuff

Avatar

Member for: 3438 days
Status: Offline

#44557
[quote=jrlepage]If your wave has 32 samples, and you assign it to position 0, it will occupy all positions from 0 to 31.

If your wave has 16 samples, and you assign it to position 0, it will occupy all positions from 0 to 15.

If you have two 32-sample waves, one sitting in position 0, and another sitting in position 1, and you try to play both at once, then the one in position 1 will "rewrite" the other wave, except for the first sample of the first wave.

Let's say your first wave looks like this:
[color=red][b]0-1-0-1-0-1-0-1-0-1-0-1-0-1-0-1-0-1-0-1-0-1-0-1-0-1-0-1-0-1-0-1[/b]

and your second wave looks like this:
[color=green][b]1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2[/b]

then the result of putting the first one in position 0 and the second one in position 1, if you try to read from position 0, will be:
[b][color=red]0-[color=green]1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1[/b][/quote]

Hmmm...So each samples (from 0-96...I'm sure 124 is part of it) always exclude 1 RAM (Still bad at English.) like 15 instead of 16 and 96 would be 95? Intresting...

And the highest wave # will always override the below wave #?

I'm getting it more now! But how would it sound like if Pos. 1-31 and pos. 0 and both of them 32 sample wave? (I'm from Spain, so excuse my language.)


Posted: 2013-02-15 23:20 Reply | Quote
Mr_Master



Member for: 3521 days
Status: Offline

#44564
[color=#ff3333][b]In English:[/b]

I don't know if I'm explaining this good, but I'll do my best:

Let's say you have a number of instruments, each one with a different waveform. There's a setting in each instrument you create which determines the wave's starting position. This starting position will be used to store the wave in memory(?) from positions x to y(x being the starting position and y being x + wave length - 1). Look at this example so you can understand it better:

We have a N163 instrument: The wave assigned is 32 steps long, which means it will use 32 memory spaces. Its starting position will be 0 so it will use positions 0 to 31 to store the wave in memory.

Now there's another N163 instrument with a different waveform and same length(32 steps). It will also use 32 spaces in memory, but we will assign 32 as its starting position instead of 0. It will use positions from 32 to 63.

What happens when you assign the same spaces for two different waves, as they said, is that only one wave will be played when two instruments are used simultaneously, because the waves overlap. However, if two instruments share the same wave both can be used at the same time.

Two instruments with different waveforms can be used together but they must be located in different positions in memory.

[color=#33ff33][b]En Español:[/b]

No sé si explico esto bien pero haré lo mejor que pueda:

Digamos que tienes un número de instrumentos, cada uno con una forma de onda distinta. Hay un ajuste en cada instrumento que creas que determina la posición en la cual comienza la onda. Esta posición será usada para almacenar la onda en la memoria desde la posición x hasta y(x siendo la posición de comienzo e y siendo la misma posición + longitud de onda - 1). Mira este ejemplo para que lo entiendas mejor:

Tenemos un instrumento de N163. La onda asignada a él tiene una longitud de 32 muestras, lo que significa que usará 32 espacios en la memoria. Su posición de comienzo será 0 por lo cual usará las posiciones 0 a 31 para almacenar la onda en la memoria.

Ahora hay otro instrumento de N163 con una forma de onda diferente y la misma longitud(32 muestras). También usará 32 espacios en la memoria pero asignaremos la posición de comienzo a 32 en vez de 0. Usará las posiciones 32 hasta 63.

Lo que pasa cuando asignas los mismos espacios para dos ondas distintas, como ellos dijeron, es que solo una de las ondas se oirá cuando usas dos instrumentos simultaneamente, porque las ondas se sobreponen. Sin embargo, si dos instrumentos comparten la misma forma de onda pueden ser usados al mismo tiempo.

Dos instrumentos con distintas formas de onda pueden ser usados al mismo tiempo pero deben estar ubicados en distintas posiciones en la memoria.

Fuera del asunto, el lugar del cual seas no influye en tu capacidad de hablar inglés. Eso depende solamente de ti.

Page 1 of 12 Sort: Goto Page: [1] [2] [3] [4] [5] [6] ... [10] [11] [12] Next >>