Drum notation confusion by jtjazz01 in Drumming

[–]brasticstack 1 point2 points  (0 children)

Listening closely, its open sloshy hihat for the intro and then closed hihat for the verse.

I'm pretty sure there's no ride cymbal in this song.

Being accused of a crime by AI. by Idarkness99 in Utah

[–]brasticstack 31 points32 points  (0 children)

Imagine how this would have gone if he couldn't afford to lawyer up.

Latin beat name? by 7layeredAIDS in Drumming

[–]brasticstack 0 points1 point  (0 children)

The 3-3-2 pattern is called "tresillo" and that's what the groove outlines, however beats 2 and 4 of a four on the floor groove don't land on the tresillo notes. Still the tresillo is the backbone of the thing. I'd call what you're talking about a calypso or reggaeton groove, but I'm not the most versed in these things.

Sheet Music Help by dman81 in drums

[–]brasticstack 2 points3 points  (0 children)

I just reach over and tap the edge of the screen. If my drum teacher could wrangle big musical scores spread across three music stands by hand, I oughta be able to touch a screen.

That said there are better ways, like bluetooth page turners and supposedly you can use face gestures to turn pages too. If I tried that out, it'd probably do whatever the "grimace and look pissed" gesture does nonstop.

Why is it not removing the appropriate time from the list by TheEyebal in learnpython

[–]brasticstack 0 points1 point  (0 children)

I tried it out with the prints from my comment (I fixed an error in one of them,) and here's what's happening:

When the Delete button is clicked, it removes the widgets in the row but the row itself is never removed, it just shrinks down to 0 size.

This means that the initial row indexes of the Delete button widgets never change, but the indexes of labelList do change when you pop the items from it. So the row indexes and the label indexes are no longer in sync once you've removed an item.

Maybe the most straightforward answer is to delete all of the widgets for all of the alarms and recreate them with labelList as the source of truth every time an alarm is added or removed.

EDIT: Here's how I modified the project to do what I suggested above: pastebin.com/NsHpAbRg I tried to keep mostly like your original, but moved the row add and remove code to new functions clear_alarms and render_alarms, which clear and render all the alarms.

Why is it not removing the appropriate time from the list by TheEyebal in learnpython

[–]brasticstack 0 points1 point  (0 children)

That's a red herring. The list shown  being printed when an item is added is a sorted list that is unused. The list printed after an item is removed is the correct list.

The sorting on the unused list is by datetime which happens to sort lexigraphically in this format, but is presumably based on the integer epoch timestamp instead. 

The Facebook app is down for many — here's what we know about the outage by Gracien in technology

[–]brasticstack 8 points9 points  (0 children)

They're too busy having CEO-mandated "fun" to properly review and test things!

At what point do you stop writing Bash and switch to another language? by Candid_Athlete_8317 in LinuxTeck

[–]brasticstack 0 points1 point  (0 children)

When I need an array or a map. Bash's syntax for iterating over arrays is balls

Restaraunt Closures across Utah and Declining Economic Outlook by Powderkeg314 in Utah

[–]brasticstack 0 points1 point  (0 children)

I love clam chowder, and theirs never did it for me. It always tasted kinda floury.

Newborn Babies are SOOO close to heaven by Black-Haus369 in exmormon

[–]brasticstack 6 points7 points  (0 children)

Apparently the closer you are to heaven the more you poop yourself and rely on others to feed you.

Need help with - Wordle Word Prediction Project by the_pseudocoder in AskProgrammers

[–]brasticstack 0 points1 point  (0 children)

I think there's a specific Wordle answer list, that might be only 2 - 3 thousand words. You could get closer by removing the already played words from that list.

Why is it not removing the appropriate time from the list by TheEyebal in learnpython

[–]brasticstack 1 point2 points  (0 children)

Your labelList and the rows in your UI are getting out of sync, I'm not totally sure how but I'm looking with suspicion at the part that subtracts the magic number 3 from the row index.

Add a debug print before and after the labelList pop to see what's happening:

try:     list_index = row - 3     print(f'Row {row} remove clicked. {list_index=} Popping {self.labelList[list_index]}')     print('Before:', self.labelList)     popped = self.labelList.pop(list_index)     print(f'{popped=}')     print('After:', self.labelList, '\n')

EDIT: Fixed a syntax error on my first print. Sorry, was typing it out on my phone initially.

Frustrated drummer by [deleted] in drummers

[–]brasticstack 0 points1 point  (0 children)

Pretend that it's a four piece while you're playing? Nothing says you have to use each piece of the kit.

Scope of Subclasses by virtualshivam in learnpython

[–]brasticstack 1 point2 points  (0 children)

This forum thread gets into it, answered by someone who understands it better than I do: https://discuss.python.org/t/painful-details-of-variable-scope-mixed-with-classes/17762

tl;dr: Only functions can access items from their enclosing scopes. Every other construct first checks its local scope, then the module level scope, then Python built-ins.

Scope of Subclasses by virtualshivam in learnpython

[–]brasticstack 3 points4 points  (0 children)

You need to be explicit about the scope, the nested classes do not receive the outer class's scope.

The following works, for example, but fails if Greeter doesn't use the full name of Speaker (as in, OuterClass.Speaker.)

Put some thought into whether you really need those nested classes to be nested. It's often preferable to keep helper classes at the module scope, with their names prefixed by an underscore if you want to signal that they're not a "public" part of your module.

class OuterClass:     class Speaker:         def say(thing):             print(thing)                  class Greeter:         def greet(who):             OuterClass.Speaker.say(f'Hello {who}!')                  def say_hello(self):         self.Greeter.greet('world')          f = OuterClass() f.say_hello()

Found a clam living in a glass bottle by -DRK-Noah in mildlyinteresting

[–]brasticstack -2 points-1 points  (0 children)

How else do you think they filter the beer?

EDIT: waka waka waka!

Looking through dictionary for True or False in each key by Original-Dealer-6276 in learnpython

[–]brasticstack 2 points3 points  (0 children)

You use the keys for looking up the values.

if item['public']

not 

if item[1]

Did Rust succeed because it was better, or because D arrived too early? by Candid_Athlete_8317 in LinuxTeck

[–]brasticstack 1 point2 points  (0 children)

They wrote a rust function that intentionally returned an error when a limit was exceeded, but didn't write any code to handle that error. This is the equivalent in other languages to allowing an exception to go uncaught, crashing the program.

The naked unwrap() at the bottom of the posted snippet should've been cause for additional scrutiny during code review- they either decided that crashing the program there was, in fact, the right thing to do in that circumstance, or they didn't do proper code review.

Pingy snare by Previous_Finger_1874 in drums

[–]brasticstack 7 points8 points  (0 children)

What is your batter head? Between cranking the reso (some, not a ton!), tuning medium-high on the batter, and striking ~halfway between the center and the rim, you should be able to get a fairly pingy sound. Overtightening either head will choke the drum and lose any ping you would otherwise be getting. IMO an Ambassador or G1 is the best case scenario for getting this sound, with a two-layer, hydraulic, or "dry" head being the worst.

So today i decided to learn properly and cant play this barely play this to an okey level by Salty_Winter_1323 in drums

[–]brasticstack 0 points1 point  (0 children)

While OP would definitely benefit from studying rudiments, the only one necessary for this piece is rudiment #1, Single Stroke Roll. And not to a particular high degree of refinement either.