ChanServ changed the topic of ##yamahasynths to: Channel dedicated to questions and discussion of Yamaha FM Synthesizer internals and corresponding REing. Discussion of synthesis methods similar to the Yamaha line of chips, Sound Blasters + clones, PCM chips like RF5C68, and CD theory of operation are also on-topic. Channel logs: https://freenode.irclog.whitequark.org/~h~yamahasynths
Stilett0 has quit [Quit: leaving]
Stilett0 has joined ##yamahasynths
l_oliveira has quit [Quit: ChatZilla 0.9.92-rdmsoft [XULRunner 35.0.1/20150122214805]]
_whitelogger has joined ##yamahasynths
_whitelogger has joined ##yamahasynths
_whitelogger has joined ##yamahasynths
_whitelogger has joined ##yamahasynths
_whitelogger has joined ##yamahasynths
nukeykt has joined ##yamahasynths
futarisIRCcloud has quit [Quit: Connection closed for inactivity]
_whitelogger has joined ##yamahasynths
futarisIRCcloud has joined ##yamahasynths
cr1901_modern1 has joined ##yamahasynths
cr1901_modern has quit [Ping timeout: 255 seconds]
l_oliveira has joined ##yamahasynths
futarisIRCcloud has quit [Quit: Connection closed for inactivity]
<Sarayan> SWP = Standard Wave Processor
andlabs has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andlabs has joined ##yamahasynths
cr1901_modern1 has quit [Quit: Leaving.]
cr1901_modern has joined ##yamahasynths
<Lord_Nightmare> upd7759 is an adpcm playback chip, but its a bit interesting internally as it has its own microsequencer thing on die, which isn't dumped yet. its been decapped, but the ROM is probably implant
<Lord_Nightmare> this microsequencer is probably what explains the somewhat inconsistent 'request for new data' behavior when the chip runs in slave mode
<Lord_Nightmare> maybe having to do with the exact number of bytes needed to keep some sort of fifo(?) full? I don't know for sure, charles macdonadl did some tests on it
<Lord_Nightmare> *macdonald
nukeykt has quit [Quit: Page closed]
<Sarayan> Hi whitequark, managed to sync groupxiv with latest leaflet?
<whitequark> Sarayan: not yet but i have an opening so i think i'll look into it now
<Sarayan> wq: way cool
<whitequark> Sarayan: updated
<Sarayan> yay, so that means I can replace leaflet with groupxiv?
<whitequark> i think so
<whitequark> btw i also added a feature that allows you to zoom further than 1:1
<Sarayan> ok, trying to understand how to use it :-)
<whitequark> Sarayan: the idea is you put a small json file next to your tiles
<whitequark> {"layers": [{"imageSize": 8192, "tileSize": 512, "URL": "attiny24v.png", "width": 4351, "height": 3626, "name": "???", "maxZoom": 4}], "scale": 540, "name": "Atmel ATtiny24V"}
<whitequark> for example
<whitequark> then it loads tiles from "attiny24v.png-tiles" directory adjacent to the json file
<Sarayan> ok, let's try with one layer
<Sarayan> tell I'll add the second
<Sarayan> errr, what's imageSize?
<whitequark> Sarayan: from groupxiv.js;
<whitequark> imageSize: smallest square image size that fits all tiles at maximum zoom
<Sarayan> so... that's (max(width, height) | 511) + 1 ?
<whitequark> yeah
<Sarayan> 52736, weee
<whitequark> i'm not completely sure why it's needed
<whitequark> it was in 2015
<Sarayan> heh
<Sarayan> what is scale?
<whitequark> for length/area measurements
<whitequark> scale: image scale (nm/px)
<Sarayan> oh
<Sarayan> that's complicated
<whitequark> you can just omit it if you want
<whitequark> if you omit it, the measurement controls wont appear
<Sarayan> well, I essentially don't know the value
<Sarayan> I could try to guess
<whitequark> so if you dont care about measuring transistor size, you dont need it
<Sarayan> It's not a priority indeed
<Sarayan> hmmm
<Sarayan> "Cannot load underfined", cute
<whitequark> so you open it like
<whitequark> localhost:8000#url=data/foo.png.json
<whitequark> or whatever is the path to your json file
<whitequark> relative to public_html
<Sarayan> now to debug whatever I fucked up :-)
<whitequark> how
<whitequark> 's the json called?
<Sarayan> tiles.json
<whitequark> Sarayan: <script>loadViewer(parseHash()["tiles.json"]);</script>
<whitequark> but ... why
<whitequark> if you want to hardcode it it needs to be like this
<whitequark> loadViewer("tiles.json")
<Sarayan> I'm no good at JS
<Sarayan> oh
<whitequark> ok
<whitequark> admittedly none of this is really documented
<whitequark> or a very good api
<whitequark> so it's fine
<Sarayan> fixed
<Sarayan> well, I have controls on a balck screen
<Sarayan> black
<Sarayan> so I have other fuckupds
<Sarayan> is data/ a requirement?
<whitequark> let me see
<whitequark> let me add some more API fixes
<Sarayan> schem/{z}/{x}/{y}.png is what I used
<whitequark> yes, i figured
<whitequark> i will remove the implicit -tiles
<Sarayan> I can change it to anything you want
<Sarayan> -2 is kinda weird
<whitequark> -2 is just leaflet being stupid
<Sarayan> ok, that works too :-)
<Sarayan> ok, better now
<whitequark> Sarayan: i just force-pushed
<whitequark> hmm
<whitequark> Sarayan: in your json file, set "tilesAlignedTopLeft": true
<Sarayan> in layers or outside of it?
<Sarayan> IIve added the die layer, I'm not getting the selector
<whitequark> outside of layers
<whitequark> it applies to all of them
<whitequark> re selector, i think i never actually added the control, since i haven't had any layered images
<whitequark> gimme a sec
<Sarayan> it centered the image, sadly it's not adjusting the zoom
<whitequark> what do you mean?
<Sarayan> it's not taking the full height of the window on load
<whitequark> huh?
<whitequark> it adds a small margin, yes
<whitequark> is that a huge problem?
<Sarayan> It's not a huge problem at all, but I don't think it's the expected margin
<whitequark> it's an artifact of how leaflet works
<whitequark> it's really intended for maps projected from a sphere
<whitequark> making it work on panoramic shots is... annoying
<Lord_Nightmare> the click and drag thing still has an issue where the upper left of the image 'sticks' to the upper left of the window
<whitequark> it's actually intended behavior
<Sarayan> I remember making the zoom on load working correctly was "interesting"
<whitequark> except it might not be that desirable
<Lord_Nightmare> even if you drag it away, it sticks back there, which is very annoying since i cannot zoom in on the extreme upper left of the image
<whitequark> yes
<Lord_Nightmare> and center it
<whitequark> i mean, you can
<whitequark> but not center it
<whitequark> iirc i did something about that but it broke the tiles made by digshadow
<whitequark> so the current situation is a compromise
<Lord_Nightmare> it means i can't point out coordinates at that point
<Lord_Nightmare> something with tile indexes being signed on the image names vs unsigned?
<Lord_Nightmare> if that's the issue can't you apply a configurable integer offset for the x and y image indices?
<whitequark> Lord_Nightmare: no, has nothing to do with tile files
<Lord_Nightmare> and treat x and y image indices (this is for the source images) as always signed
<Lord_Nightmare> ah ok
<Lord_Nightmare> i was wrong in my guess
<whitequark> Sarayan: ok, yeah, it's setMapBounds
<whitequark> i can just disable that
<whitequark> Sarayan: to help me debug these issues, can you add a header to og.kervella.org?
<whitequark> Access-Control-Allow-Origin: *
<whitequark> this will let me point my local instance of groupxiv to your tiles
<Lord_Nightmare> whitequark: can you make it an option in the json to disable the 'lock viewport to upper left corner of image' thing?
<Lord_Nightmare> if only dig needs it, then it can be disabled elsewhere
<Sarayan> wq: should be there now
<whitequark> Sarayan: pull
<Sarayan> ok
<Sarayan> better than raw leaflet: the tile zoom level is better chosen
<Sarayan> worse: it has both layers active initially, that's slower to load
<Sarayan> worse: the margin is big
<whitequark> Sarayan: fixed both layers issue
<Sarayan> equivalent: it doesn't "scale the zoom" between the layers
<Sarayan> that one is an annoying problem, since the die shot and the schematic are aligned
<whitequark> Sarayan: "scale the zoom">
<whitequark> ?
<Sarayan> if you switch between the two layers, you see they're not at the same size
<Sarayan> because the original images are not the same size either
<Sarayan> (schematic is 5x larger, and 5 is not a power of two)
<Sarayan> but they're designed to be aligned
<whitequark> hmm
<Sarayan> interesting, under chromium zoom 2 is exactly the window size
<whitequark> not on my machine
<Sarayan> that's thw web for you
<Sarayan> not a real problem though
<Wohali> cr1901_modern: fyi i'd like to do the social media thing on May 1 to announce the rest of these boards. Right now it's looking like I'll have 50 unclaimed PCBs :( Unless people really rush to pay for their preorders Mon or Tues. Can you help?
<whitequark> Sarayan: yeah the alignment is a serious problem
<whitequark> actually i have an idea...
<whitequark> Sarayan: set tileSize for the die shot to 768
<whitequark> of course, this way only the schematic will be pixel perfect
<whitequark> but since there is a factor of 1.5 you cannot make both pixel perfect anyway
<whitequark> it is possible to make leaflet load more images and then downscale, but it is slow enough as it is
<Sarayan> you mean the downscale it not done by the browser?
<whitequark> Sarayan: there are 2 options
<whitequark> either make it load the tile of die at smaller zoom level and stretch it
<whitequark> or, make it load 4 times the tile of die at higher zoom level and shrink it
<whitequark> the 1st option is faster
<Sarayan> I mean, as soon as the zoom level is dependant on the window size, you can't be pixel perfect can you?
<whitequark> it is not dependent on window size
<Sarayan> https://og.kervella.org/ym2203/ym2203/index-lf.html is, I guess that's why it's a little ugly
<Sarayan> because it's streching
<whitequark> hm, odd
<whitequark> i'm not actually sure how you managed to achieve that :D
<whitequark> but you can see that groupxiv gives you pixel perfect schematic
<Sarayan> mymap.fitBounds([[-ssy*512/sp2y,0],[0,ssx*512/sp2x]]);
<Sarayan> that is how
<whitequark> ah
<Sarayan> and zoomSnap: 0
<whitequark> ahhh.
<whitequark> yeah, disabling zoom snap would do it
<Sarayan> I really wanted to have fill-window-by-default
<Sarayan> plus I couldn't count on pixel-perfect since I want the alignment
<Sarayan> but stupid-ass zoomOffset only does integer
<whitequark> that's how it works, it's applied to the URL
<Sarayan> it should be applied to the zoom
<Sarayan> I mean, it's a friggin' zoom offset
<whitequark> that's not what zoom means in leaflet
<whitequark> it's really the z coordinate
<whitequark> well
<whitequark> people usually don't combine maps with different resolution, is all
<whitequark> because it looks bad
superctr has quit [Ping timeout: 268 seconds]
superctr has joined ##yamahasynths
<cr1901_modern> Wohali: I finally paid for my preorder a few days ago, and sure I'll help (although I'm not feeling well today)
<Foone_> dunno if you've already posted this here, but hey look: a snark barker just showed up on ebay: https://www.ebay.com/itm/143230636502
<ej5> whoah, expensive
<ej5> and the volume knob is all wrong lol
<whitequark> >
<whitequark> Moscow, Russian Federation
<whitequark> Item location:
<ej5> heh
futarisIRCcloud has joined ##yamahasynths
<TD-Linux> HASL :(
<TD-Linux> (not yours though)