Commit graph

10744 commits

Author SHA1 Message Date
tildearrow
95b536f47e GUI: new pattern renderer, part 2
some scrolling
2025-12-30 01:45:57 -05:00
tildearrow
474f80396b GUI: new pattern renderer, part 1
prototype with no scroll or selection
2025-12-27 19:47:31 -05:00
tildearrow
4db4509621 GUI: prepare for new pattern renderer
likely two stages, depending on how efficient the first one is

stage 1:
- no more Selectables
- using ImDrawList to draw the pattern
  - perhaps even bypassing that and directly firing quads at the draw queue

stage 2:
- using textures and tiles to draw the pattern
2025-12-27 18:16:33 -05:00
tildearrow
240d3c5718 GUI: use an accumulator for wave synth preview
issue #2735
2025-12-27 17:30:19 -05:00
tildearrow
03bdabf7a6 GUI: fix N163 initial chan count mismatch 2025-12-26 18:25:50 -05:00
tildearrow
34b06855cd update Dear ImGui to 1.92.5 - READ
there are some text changes which may break text undo/redo.
testing needed.
2025-12-26 18:12:14 -05:00
tildearrow
7cb0dacf9e update Dear ImGui to 1.92.4 2025-12-26 17:28:40 -05:00
tildearrow
54c6327a83 format.md improvements 2025-12-20 17:30:33 -05:00
tildearrow
eaa254ca6f input scale debug info 2025-12-20 15:18:53 -05:00
tildearrow
0029847a31 file picker: fix confirm overwrite 2025-12-18 16:21:12 -05:00
tildearrow
4c2d99da63 add winners from fourth mini-contest
Melody template contest
2025-12-18 15:23:14 -05:00
tildearrow
b6a86a896b add winners from third mini-contest
PV-1000 contest
2025-12-12 05:51:51 -05:00
tildearrow
79fa3aba35 remove remnants of legacy sample mode 2025-12-12 04:13:12 -05:00
tildearrow
da01c3b8f4 CI: upgrade macOS to 14
as of today I am no longer supporting older systems. I am sorry.
2025-12-11 17:00:32 -05:00
Eknous-P
d4bfce770a add the clock rate text for saa1099 clock selector 2025-12-12 01:12:36 +04:00
Eknous-P
927ed4b829 fix strings 2025-12-08 21:47:39 +04:00
Eknous-P
19c78955bb option to change the piano hit key color mode 2025-12-07 21:31:23 +04:00
tildearrow
9d4da19ab5 add winners from second mini-contest
Bifurcator contest
2025-12-06 14:09:29 -05:00
tildearrow
83f7c80176 audio export: fix per-chip export 2025-12-06 05:03:40 -05:00
tildearrow
4a9713e2db nobody uses a hyphen 2025-12-02 15:52:13 -05:00
tildearrow
30840e7dfc add winners from first mini-contest
Doom/Fantasia patch contest, part of a series of mini-contests...

special thanks to Molkirill for the contest idea.

Doom/Fantasia patch contest - RESULTS
=====================================

Qualified
---------
1. BlueElectric05 - Rave of Doom (RaveOfDoom.fur)
2. tildearrow - Hidden Waterfall (unused) (waterfall.fur)
3. AArt1256 - golden shit (golden_shit.fur)
4. halberd/lordlydumbass - flatulence mountain's fm orchestra (flatulence mountain's fm orchestra.fur)
5. Electric Keet - Imperfectionist (Electric Keet - Imperfectionist.fur)
6. psxdominator - Eternally Doomed to Groove (eternallydoomedtogroove (1).fur)
7. dj.tuBIG/MaliceX - 1-07 - Blue Sky ~bad fm mix~ (djtBMX_zweitrigger_bluesky_badfmmix.fur)

Sorry
-----
8. Yuzugure! - TekAbyssimo (YM3438) (TekAbyssimo.fur)
9. Raijin - A woman by the name of Donna is in great despair due to the difficult decision she must make determining the location of a certain dude who demolishes demons that may or may not be deep within the slough of Hell. She knows not if he is in need of aid or if he is doomed, however, she struggles to come to a solution regarding the whole affair nevertheless. (Donna contemplates going to someone's aid.fur)
10. MetallicOrwell - The Boundless Ocean (boundlessocean_shitty.fur)
11. psxdominator - I spit on the face of progress! (ispitonthefaceofprogress.fur)
12. filippp (.aka doctor who) - puretastic (puretastic_doctor_who.fur)
13. \- (fart mandrill.fur)
14. Ray Hamilton - Sun of a Beach (Doom Beach.fur)
15. psxdominator - Cartoonish Chase (cartoonishchase (1).fur)
16. VioletTheSquirrel(SuperCrafter015) - Doom's Fonk'o'million (Doom's Funk'o'million.fur)
17. \- (doom32x_template(2).fur)
18. \- (LoveHearts OPN2C cover (1).fur)
19. sam!! - Sci-fi (sci-fi.fur)
20. MetallicOrwell - Vampire Killer (vkiller shitty.fur)
21. \- (Heavy Doc - Doom 32x + Fantasia contest entry 11-26-25.fur)
2025-12-01 20:51:38 -05:00
Eknous-P
b6ef50f89a fix division by 0 2025-11-29 13:27:56 +04:00
Ashley W. Katze
e0a98f14d8 whoops i need to compress 2025-11-28 04:52:45 -05:00
Ashley W. Katze
09ec2d02de grah 2025-11-28 04:52:45 -05:00
Eknous-P
3de64c3c37 fix sample map sample number clamping
potentially
2025-11-26 23:51:12 +04:00
tildearrow
18e62322dd fix darkstar 2025-11-26 05:17:35 -05:00
Eknous-P
c258c50758 fix piano keys sometimes turning black 2025-11-25 12:54:02 +04:00
tildearrow
fff98379e9 remove references to TimeBase/Divider 2025-11-24 20:55:26 -05:00
tildearrow
eca315b99a prepare for supporting channel count in user syste
ms
2025-11-24 20:48:22 -05:00
Electric Keet
4e2477e8ba Revised default dialog positions.
Thanks, Eknous!
2025-11-23 11:07:38 -05:00
Electric Keet
4409e1070d Oops. Removing duplicate entry.
Forgot to check for dupes!
2025-11-23 11:07:38 -05:00
Electric Keet
6ebbf76dc7 Default positions for new dialogs.
I've tested these as best I can, but my display scaling might have confounded my attempts. Please test before merging!
2025-11-23 11:07:38 -05:00
tildearrow
54b31f7fc1 get rid of the hack 2025-11-23 10:59:49 -05:00
tildearrow
6473b5bd12 dev241 - bump version number 2025-11-23 05:14:50 -05:00
tildearrow
aba4744977 DO NOT READ A ZERO POINTER TO GROOVE 2025-11-23 02:27:42 -05:00
tildearrow
36b321794f FIX GROOVE SAVING!!!! 2025-11-23 02:25:10 -05:00
tildearrow
d4f2130650 FIX CRITICAL ISSUES WHEN LOADING
- compat flags not loading
- song comment disappearing
2025-11-23 02:08:29 -05:00
tildearrow
87da7a5f40 IT import: possibly fix channel count 2025-11-21 20:26:04 -05:00
tildearrow
ff1aad8959 limit the maximum speed
too high and it will never seek
2025-11-21 20:16:07 -05:00
tildearrow
de0a4e652a add button to access macro menu on mobile 2025-11-21 16:42:00 -05:00
Eknous-P
f61f9efccf chan color in sys manager 2025-11-21 23:17:33 +04:00
Eknous-P
1d331f451c compiler warning paranoia 2025-11-21 22:58:14 +04:00
tildearrow
6ad8a0893b dev240 - Merge branch 'inf2' - READ
this introduces several major changes to Furnace. I hope this message explains everything.

**File Format Changes**

a new song info header (`INF2`) has been introduced, which:
- cleans up the mess I made when adding sub-songs to Furnace
- allows better forward compatibility and extensibility
- uses 16-bit chip IDs
- moves compatibility flags to another block and is stored as a DivConfig
- stores channel count in the file, allowing chips with dynamic channel count (e.g. Namco 163)

a new sub-song data block has been introduced as well.

check out papers/format.md for information.

**Furnace Changes**

TimeBase ("Divider" in the UI) has been REMOVED. it was a DefleMask leftover.
to compensate, the speeds are now 16-bit. older songs will have their speeds converted, but this may fail if you use grooves or change speed mid-song.

dynamic channel count support has been added. the following chips are currently supported:
- Namco 163 (1-8 channels)
- ES5506 (5-32 channels)
- Generic PCM DAC (1-128 channels, with software mixing!)

channel colors have been added (thanks Eknous!).

SegaPCM (compatible 5-channel mode) and Neo Geo CD have been REMOVED. when loading previous files, including .dmf ones, these will have compatible SegaPCM and Neo Geo CD chips converted to normal SegaPCM and YM2610 respectively.
their channel count remains unaltered though. you can fix this by going into the chip manager and clicking the button next to "irregular channel count" in each chip config section.

**Code Changes**

a couple refactors have been made for the sake of code cleanliness and depending less on DivEngine...

=> Chip Channel Count

two new values, adjacent to the channel count, have been added to DivSysDef.
these specify the minimum and maximum channel count for a chip.

if your chip doesn't require dynamic channels, feel free to set these to the channel count.

for example, here's an old definition:

```
sysDefs[DIV_SYSTEM_NES]=new DivSysDef(
  _("NES (Ricoh 2A03)"), NULL, 0x06, 0x06, 5 /* channel count*/, false, true, 0x161, false, (1U<<DIV_SAMPLE_DEPTH_1BIT_DPCM)|(1U<<DIV_SAMPLE_DEPTH_8BIT), 0, 0,
  ...
```

and here's how it looks now:

```
sysDefs[DIV_SYSTEM_NES]=new DivSysDef(
  _("NES (Ricoh 2A03)"), NULL, 0x06, 0x06, 5 /* nominal channel count*/, 5 /* min channels */, 5 /* max channels */,
  false, true, 0x161, false, (1U<<DIV_SAMPLE_DEPTH_1BIT_DPCM)|(1U<<DIV_SAMPLE_DEPTH_8BIT), 0, 0,
  ...
```

=> New Channel Definition

a new way to define chip channels has been introduced, replacing the old one.
it looks cleaner and is more flexible (even supporting dynamic channel count).

it works by defining a function in the chip definition, which returns a DivChanDef with channel information (name, short name, type and instrument type(s)).
alternatively, a list can be provided in the DivChanDefFunc() constructor, in the event channels differ greatly and/or the number of channels is small.
for example, if your chip's channel definition code looked like this:

```
{_("Pulse 1"), _("Pulse 2"), _("Triangle"), _("Noise"), _("DPCM")}, // names
{"S1", "S2", "TR", "NO", "DMC"}, // short names
{DIV_CH_PULSE, DIV_CH_PULSE, DIV_CH_WAVE, DIV_CH_NOISE, DIV_CH_PCM}, // types
{DIV_INS_NES, DIV_INS_NES, DIV_INS_NES, DIV_INS_NES, DIV_INS_NES}, // ins types
{DIV_INS_NULL, DIV_INS_NULL, DIV_INS_NULL, DIV_INS_NULL, DIV_INS_AMIGA}, // secondary ins types
```

now they look like this:

```
DivChanDefFunc({
  DivChanDef(_("Pulse 1") , "S1" , DIV_CH_PULSE, DIV_INS_NES),
  DivChanDef(_("Pulse 2") , "S2" , DIV_CH_PULSE, DIV_INS_NES),
  DivChanDef(_("Triangle"), "TR" , DIV_CH_WAVE , DIV_INS_NES),
  DivChanDef(_("Noise")   , "NO" , DIV_CH_NOISE, DIV_INS_NES),
  DivChanDef(_("DPCM")    , "DMC", DIV_CH_PCM  , DIV_INS_NES, DIV_INS_AMIGA)
}),
```

some helper templates, such as stockChanDef and simpleChanDef also exist, which automatically map channel names and types regardless of count.
this is useful if all your channels happen to be named "Channel 1", "Channel 2" and so on, while sharing the same type and instrument type (this is the case for many sampler chips).

if you've been working on a custom chip, make sure to adapt your chip definitions.

=> More Chip Definition Changes

the DivSystem enum is now in src/engine/sysDef.h

channel definitions are cached in the DivSong.

=> Reducing Dependency on DivEngine

many functions have been moved away from DivEngine where possible. these include:

- recalcChans() (now on DivSong)
  - chans, sysOfChan, dispatchOfChan, dispatchChanOfChan and dispatchFirstChan have been moved to DivSong as well.
- asset dir storage/modification/check finctions (now on src/engine/assetDir.cpp)
- DivEngine::getSystemDef() is now a static function, so it can be called without a DivEngine (engine still has to initialize systems first!)

IMPORTANT: hasLoadedSomething is no longer set in recalcChans() because it is part of DivEngine. if you have import code, MAKE SURE TO SET hasLoadedSomething TO true AFTER SWITCHING THE SONG (song=ds).

=> Dynamic Channel Count

a new array called systemChans[] has been added to DivSong, allowing you to define the number of channels for each chip.
if you change this, make sure to call recalcChans() afterwards.

if you use dispatchChanOfChan[], treat `-1` as "no channel". this is set when the channel count is higher than the chip's maximum.

if you're working on import code, and are certain you won't use dynamic channel count, call DivSong::initDefaultSystemChans() before recalcChans(). this will set up default channel counts for you.
otherwise, set systemChans[] appropriately.
2025-11-21 11:26:27 -05:00
tildearrow
f4bd61df41 fix the doc 2025-11-21 11:14:24 -05:00
tildearrow
c3394594a6 giga-refactor, part 21
store channel colors!
2025-11-21 11:08:13 -05:00
tildearrow
fea3bab550 Merge branch 'chanColorsEtc' into inf2 2025-11-21 10:51:44 -05:00
tildearrow
1882a4f12d consider channel color for the rest of functions 2025-11-21 10:51:03 -05:00
tildearrow
47e2910498 giga-refactor, part 20
convert compat SegaPCM to normal SegaPCM with 5 channels
convert Neo Geo CD to YM2610
2025-11-21 04:58:56 -05:00
Eknous-P
62afabbc0b GBA DMA: initalize wtMem to 0 on reset 2025-11-21 13:09:38 +04:00
tildearrow
26993d2b40 giga-refactor, part 19
fix Namco 163 stuff
2025-11-19 19:35:18 -05:00